android - ScrollView not scrolling when used for two lists and dynamic space -
I have a dynamic place between the ListView
and ExpandListView
. The first idea is to extend the list view in space, and when consumed in space to show part of the screen using scrollView
The problem is scrollview
is not scrollable at all:
& lt; LinearLayout xmlns: android = "http://schemas.android.com/apk/res/android" xmlns: device = "http://schemas.android.com/tools" Android: layout_width = "250dp" Android: layout_height = "Match_parent" android: id = "@ + id / menu_navigation" android: background = "@ drawable / shield" tool reference = ". navigation Drovrfragment" & gt; & Lt; ScrollView Android: layout_width = "wrap_content" android: layout_height = "match_parent" android: fillViewport = "true" & gt; & Lt; LinearLayout Android: layout_width = "match_parent" android: layout_height = "wrap_content" Android: orientation = "vertical" & gt; & Lt; ListView android: id = "@ + id / navigationTopList" Android: Layout_width = "Match_parent" Android: Layout_height = "Wrap_content" Android: ChoiceMode = "SingleChoice" android: divider = "@ android: color / transparent" Android: DividerHeight = " 0dp "Android: isScrollContainer =" false "/> // dynamic space & lt; See Android: layout_width = "wrap_content" Android: layout_height = "0dp" Android: Leaut_vet = "1" / & gt; // should show below and expand in the dynamic space and if scrollView and lt; ExpandableListView should be scrolled more through Android: Android: Android: layout_width = "match_parent" Android: layout_height = "wrap_content" Android: groupIndicator = "@ Null" /> & Lt; / LinearLayout & gt; & Lt; / Scrollview & gt; & Lt; / LinearLayout & gt; According to Android, you should not include the listviews inside the scrollview:
After
Some solutions are doing here in stackoverflow:
[2]
[2]
List of children's remedies to avoid the book of inventory on the basis of . Have a look at many solutions.
Comments
Post a Comment