java - ListView divider is not dividng items -
i have listview:
<listview android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@android:id/list" android:layout_weight="1" android:divider="@null" android:dividerheight="8dp"/>
and have drawable draw round corners listview items:
<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" > <solid android:color="@color/listviewitembackground"/> <corners android:radius="5dp" /> <padding android:left="3dp" android:top="3dp" android:right="3dp" android:bottom="3dp" /> </shape>
with above setup, items touching each other.
what missing?
you've set android:divider="@null"
aren't seeing divider.
look @ how this person has set listview
divider example should doing.
Comments
Post a Comment