How to remove the border in a Listview?

Solution 1:

do this

myListview.setDivider(null);

This should help you.

Solution 2:

Another option would be to set a transparent color for the android:divider attribute:

<ListView 
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:divider="#00000000"
/>

Solution 3:

see this link to more info:-

getListView().setDivider(null);
getListView().setDividerHeight(0);

Or, if you want to do it in XML:

android:divider="@null"
android:dividerHeight="0dp"

Solution 4:

Great answers. I decided to use this in ListView for better readability than colour "#00xxxxxx". transparent is a system colour available by android platform.

 android:divider="@android:color/transparent"