在列表中的最后一个项目之后显示分 [英] Show divider after the last item in the list
本文介绍了在列表中的最后一个项目之后显示分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我添加了一个分压器绘制到我的列表视图,但它出现的所有项目,除了最后一个项目之后。
I added a divider drawable to my listview but it appears for all the items except after the last item.
我只有5个项目名单上,因此它的最后一个项目之后,所有的白色空间,我希望有一个分压器连最后一个项目之后
I only have 5 items on the list, so its all white space after the last item, i want to have a divider even after the last item
我想这:
android:footerDividersEnabled="true"
在我的列表视图。但它没有工作。
in my listview. But it didnt work
感谢您
推荐答案
尝试按照XML
<View
android:background="#00ff00"
android:layout_width="fill_parent"
android:layout_height="3dp"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:layout_below="@+id/YOUR_LIST_ID" />
这篇关于在列表中的最后一个项目之后显示分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文