How to Change the ListView Divider Color and Height


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"
/>

 

 

About author


User avatar

Waqas Anwar

Founder of EzzyLearning.com, Senior Consultant, Microsoft .NET and Web Technologies

Comments