How to clear the dividing line in the Android list view

Asked 2 years ago, Updated 2 years ago, 86 views

How do I clear the separation lines for each row in ListView? What should I do if I can erase it from the xml?

android-listview android

2022-09-22 12:54

1 Answers

In xml, give the dividerHeight property to zero.

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

Do it like this or on the code

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

You can do it like this.


2022-09-22 12:54

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.