标签:android
xml文件:
<ListView android:id="@+id/listview" android:layout_width="match_parent" android:layout_height="match_parent" android:cacheColorHint="#00000000" android:divider="@drawable/listview_devider"> </ListView>
代码方面只要添加一个HeaderView/FooterView即可,这里用viewStub:
ViewStub viewStub= new ViewStub(this); mListView.addHeaderView(viewStub); mListView.setAdapter(mListAdapter);
【android】让listview的顶部或者底部也显示分割线
标签:android
原文地址:http://blog.csdn.net/u011494050/article/details/39698645