我在列表视图中添加了一个可绘制的分隔线,但除了最后一项之外的所有项都会出现。
我只有5个项目在列表上,所以它都是空白后,最后一项,我想有一个分隔符,即使在最后一项
我试过这个:
android:footerDividersEnabled="true"在我的列表视图中。但是它不起作用
谢谢
发布于 2012-08-03 21:29:52
尝试在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" />发布于 2012-08-03 21:33:18
水平线
<View
android:id="@+id/view"
android:background="#FF4500"
android:layout_width="fill_parent"
android:layout_height="2dp"
android:layout_below="@+id/listview_id" />垂直线
<View
android:id="@+id/view"
android:background="#FF4500"
android:layout_width="2dp"
android:layout_height="fill_parent" />https://stackoverflow.com/questions/11796662
复制相似问题