How to Change the ListView Divider Color and Height

Waqas Anwar
30 July 2011
14529 Views

If you want to change the divider color or height of ListView you can use divider and divider height properties as shown below:

<ListView
  android:id="@+id/list"
  android:layout_width="fill_parent"
  android:layout_height="wrap_content"
  android:divider="#336699"
  android:dividerHeight="1sp"
 
android:fadingEdge="none"
/>