InQBarna / TableFixHeaders

Android library that implements a table with fixed headers.
Apache License 2.0
818 stars 300 forks source link

Why does the table get inside the screen? #132

Open iman2420 opened 5 years ago

iman2420 commented 5 years ago

I used this table for the tablet. But as you can see in the screenshot below, the width of the table is fixed to the screen, which causes the width-sectional scroll to disappear. How to fix this problem? image

BraisGabin commented 5 years ago

I don't get your problem... If we can show all the content there is not need to scroll, right? Am I missing something here?

iman2420 commented 5 years ago

Your answer is absolutely correct. But when the length of the text is long, the lines should not be wraped and the horizontal scrolling feature must be activated. Please note that I have used the table inside a LinearLayout, which is also a child of viewPager

BraisGabin commented 5 years ago

The lines should not be wraped and the horizontal scrolling feature must be activated.

This feature is not supported for performance reasons. #70 or #7 as reference.

iman2420 commented 5 years ago

This feature is presented in your sample code!

BraisGabin commented 5 years ago

No, it's not. This library never looks at the measure of their childs. It just tell the childs "your size should be X, Y". Any way, no one mantain this library. So, if you want a wrap_content table view you can do it forking the code. You create all the views in one column, measure them and take the maximum (And re-measure them with the new size).