I want to have a white line which will divide my listview. I was trying different ways but still I can't get it. Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/dark_background"
android:orientation="vertical" >
<ListView
android:id="@+id/lvFragFeedList"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/alerts_list_item_selector"
android:choiceMode="singleChoice"
android:divider="@color/archive_list_view_divider"
android:dividerHeight="4dip">
</ListView>
</LinearLayout>
<ListView
android:id="@+id/lvFragFeedList"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/alerts_list_item_selector"
android:choiceMode="singleChoice"
android:divider="@drawable/list_divider"
android:dividerHeight="4dip">
</ListView>
list_divider:
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="line">
<stroke
android:width="1px"
android:color="#FFFFFF"
android:dashWidth="1px"
android:dashGap="1px" />
</shape>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.