繁体   English   中英

如何在Android Studio中从scrollView底部删除白色空白

[英]How can i remove white blank space from bottom of scrollView in android studio

我像这样在一个ScrollView中使用了两个ListView。 但是我的问题是滚动视图的底部有一个白色的斑点

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

但最后一次那里,你可以看到右侧的通知滚动条太多的空白 从上

请帮帮我。 谢谢!

尝试添加这个

android:fillViewport =“ true”

并将内部布局高度也设为match_parent。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM