Giter VIP home page Giter VIP logo

Comments (17)

BraisGabin avatar BraisGabin commented on July 2, 2024

I don't know exactly. This behavior is accidental. Switching the addView order you can accomplish it.

from tablefixheaders.

ashx1 avatar ashx1 commented on July 2, 2024

I tried switching the addView order, but it still does the same thing. Do you know of anywhere else that I could change some code around to achieve this?

from tablefixheaders.

BraisGabin avatar BraisGabin commented on July 2, 2024

I don't remember now and I don't have a computer to check it (holydays). You can check the uses of makeView().

from tablefixheaders.

ashx1 avatar ashx1 commented on July 2, 2024

I had a look around at makeView() and not to sure of how it is done. I think I will wait until you have had a look around instead of me starting to change code around. (Enjoy your holidays.)

from tablefixheaders.

ashx1 avatar ashx1 commented on July 2, 2024

Hi Brias, I had a look around makeView() and could not get it to work, could you have a look around and give me some suggestions on how to achieve this please.

from tablefixheaders.

BraisGabin avatar BraisGabin commented on July 2, 2024

As had previously discussed the behavior you mentioned was completely
accidental. Replace TableFixHeaders.addTableView() with one of this
options:

The column overlaps the row

    private void addTableView(View view, int row, int column) {
        if (row == -1 && column == -1) {
            addView(view, getChildCount() - 4);
        } else if (row == -1) {
            addView(view, getChildCount() - 5);
        } else if (column == -1) {
            addView(view, getChildCount() - 5 - rowCount);
        } else {
            addView(view, 0);
        }
    }

The row overlaps the column

    private void addTableView(View view, int row, int column) {
        if (row == -1 && column == -1) {
            addView(view, getChildCount() - 4);
        } else if (column == -1) {
            addView(view, getChildCount() - 5);
        } else if (row == -1) {
            addView(view, getChildCount() - 5 - columnCount);
        } else {
            addView(view, 0);
        }
    }

I think you will have a problem here. The views are recycled as soon as the
cell (-1, -1) overlaps them completely. You must change the point where a
view is attached & unnatached. Add the header with / height.

from tablefixheaders.

ashx1 avatar ashx1 commented on July 2, 2024

Hey, just tried the above code where the row overlaps the column: works great.

Thanks.

from tablefixheaders.

SaadBilal avatar SaadBilal commented on July 2, 2024

@ashx1 Can you share your screenshot for review?

from tablefixheaders.

SaadBilal avatar SaadBilal commented on July 2, 2024

@ashx1 how you have achieve this behavior, i need your help?

from tablefixheaders.

ashx1 avatar ashx1 commented on July 2, 2024

Hi @SaadBilal,
If you want the column to overlap the row then you put the 1st lot of code in the method addTableView in TableFixHeaders.java, if you want the row to overlap the column then you put the 2nd lot of code in the method addTableView in TableFixHeaders.java.

from tablefixheaders.

SaadBilal avatar SaadBilal commented on July 2, 2024

@ashx1 Thank you for your reply, i tried that code for row and column but i am unable to achieve required behavior. I have attached two screenshot to show you what is going on and what i want to achieve. Please review that.
Screenshot 1: what is going on currently
Screenshot 2: what i want to achieve. (Please Help)
device-2016-03-31-121342
screenshot2

from tablefixheaders.

ashx1 avatar ashx1 commented on July 2, 2024

@SaadBilal,
Off memory, I think the colour of that cell (-1, -1) has to be transparent as well. I can't look into it until this Sunday, but I think it has to be transparent.

from tablefixheaders.

SaadBilal avatar SaadBilal commented on July 2, 2024

@ashx1 I have tried with transparent but unable to achieve. I am waiting for your request and dig deeply into it. Can you share your SKYPE Id?

from tablefixheaders.

ashx1 avatar ashx1 commented on July 2, 2024

@SaadBilal I haven't got a Skype Id, if you can wait until this weekend
(hopefully Sunday) I can have a look at what I have done to make it work.

On Thu, 31 Mar 2016 21:17 Saad Bilal [email protected] wrote:

@ashx1 https://github.com/ashx1 I have tried with transparent but
unable to achieve. I am waiting for your request and dig deeply into it.
Can you share your SKYPE Id?


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#23 (comment)

from tablefixheaders.

SaadBilal avatar SaadBilal commented on July 2, 2024

@ashx1 Alright :)

from tablefixheaders.

BraisGabin avatar BraisGabin commented on July 2, 2024

This is a no supported behavior but you can try to comment this line canvas.clipRect(widths[0], 0, canvas.getWidth(), canvas.getHeight()); in drawChild. That line was added after this issue and it's an optimization to reduce overdraw pixels.

from tablefixheaders.

SaadBilal avatar SaadBilal commented on July 2, 2024

Thank you @BraisGabin, I have tried that and now i am close to solution.

from tablefixheaders.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.