我在一个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
请帮帮我。谢谢!
答案 0 :(得分:0)
尝试添加此
机器人:fillViewport =&#34;真&#34;
并将内部布局高度也设为match_parent。