如何删除 ListView 页脚后的 ListView 分隔线?
使用 android:footerDividersEnabled="false"
删除了我的 ListView 的最后一项之后的分隔符,但不是在我的 ListView 的页脚之后...
谢谢
最佳答案
这对我有用,制作 ListView 的 android:layout_height="wrap_content"
。
这是我的 ListView xml
<ListView
android:id="@id/android:list"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:cacheColorHint="@color/transparent"
android:divider="@color/list_divider"
android:dividerHeight="1dp"
android:fadeScrollbars="true"
android:focusable="true"
android:footerDividersEnabled="true"
android:scrollbars="none"
android:transcriptMode="alwaysScroll"
/>
关于android - 删除 ListView 中页脚后的分隔线,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8011970/