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

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -