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

Remove the TableView's internal ScrollView #36

Closed
ahmadalibaloch opened this issue Jun 5, 2016 · 1 comment
Closed

Remove the TableView's internal ScrollView #36

ahmadalibaloch opened this issue Jun 5, 2016 · 1 comment

Comments

@ahmadalibaloch
Copy link

ahmadalibaloch commented Jun 5, 2016

This is not needed and can easily be implemented if needed. The problem due to this can be explained like this.

When I have tableView at the lower end of my LinearLayout layout (or any) where only 1 row can be visible. Then the tableView's internal scrollview starts scrolling that one row but I want to scroll all the screen up to see more than one rows. This is only possible when tableView expand itself beyond the screen in a parent scrollView which holds all the screen.

Here is my tableView layout in a LinearLayout with many siblings that are all in a ScrollView vertical.
<com.dgheating.mobileapp.Data.SortableProductTable xmlns:android="http://schemas.android.com/apk/res/android" xmlns:table="http://schemas.android.com/apk/res-auto" android:id="@+id/tableViewProducts" android:layout_width="match_parent" android:layout_height="wrap_content" android:divider="@color/dividerDarkGrey" android:dividerHeight="1dip" table:columnCount="5" table:headerColor="@color/colorPrimary" />

untitled

See in the screen shot I can't scroll the screen up because tableView is not expanding based on its content.

@ahmadalibaloch ahmadalibaloch changed the title Remote the TableView's internal ScrollView Remove the TableView's internal ScrollView Jun 5, 2016
@captrespect
Copy link

This would be tough because the internal view is a ListView. I've been able to work around the issue by inflating all the rows, measuring the height and then setting the height on the ListView.

See the setListViewHeightBasedOnChildren method here:http://stackoverflow.com/questions/18367522/android-list-view-inside-a-scroll-view

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

No branches or pull requests

3 participants