On Android, how can the Line which appears in a listview
at the bottom of Lists be removed?
do this
myListview.setDivider(null);
This should help you.
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"
/>
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"
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"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With