【发布时间】:2018-06-04 05:49:02
【问题描述】:
我像这样在一个 ScrollView 中使用了两个 ListView。但我的问题是滚动视图的底部有一个白色的spcae `
<ScrollView
android:id="@+id/ss"
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:layout_below="@+id/sss"
android:layout_weight="1"
android:fillViewport="true"
android:fadingEdgeLength="0dp">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:layout_alignParentTop="true">
<ListView
android:id="@+id/listView1"
android:visibility="gone"
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:divider="@null"
android:dividerHeight="1dp"
android:overScrollMode="never"
android:layout_weight="1"/>
<ListView
android:id="@+id/listView"
android:visibility="gone"
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:divider="@null"
android:dividerHeight="1dp"
android:layout_below="@id/listView1"
android:overScrollMode="never"/>
</RelativeLayout>
</ScrollView>
But last time there you can see too much blank space by notice scroll bar on right Middle From top
请帮帮我。谢谢!
【问题讨论】:
-
尝试将两个列表视图的高度更改为 wrap_content。
标签: android android-layout listview