How do I erase the line between two list views?

Asked 2 years ago, Updated 2 years ago, 154 views

<ListView 
   android:id="@+id/ListView"
   android:text="@string/Website"
   android:layout_height="30px"
   android:layout_width="150px" 
   android:scrollbars="none" 
   android:transcriptMode="normal"/>

<ListView 
   android:id="@+id/ListView1"
   android:text="@string/Website"
   android:layout_height="30px"
   android:layout_width="150px" 
   android:scrollbars="none" 
   android:transcriptMode="normal"/>

If you make two list views like the code above, there is a line between the two list views. How do I erase that line?

android android-listview

2022-09-22 13:39

1 Answers

On the code

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

You can do it like this. Or in xml

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

Please do it like this.


2022-09-22 13:39

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.