Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why does the table get inside the screen? #132

Open
iman2420 opened this issue Apr 25, 2019 · 5 comments
Open

Why does the table get inside the screen? #132

iman2420 opened this issue Apr 25, 2019 · 5 comments

Comments

@iman2420
Copy link

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
Copy link
Collaborator

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
Copy link
Author

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
Copy link
Collaborator

BraisGabin commented Apr 26, 2019

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
Copy link
Author

This feature is presented in your sample code!

@BraisGabin
Copy link
Collaborator

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants