Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android ListView Item Border Width and Color

How do I set the border between listview items. I need to have specific color and width.

like image 636
Androider Avatar asked Feb 21 '11 08:02

Androider


2 Answers

Check this.

android:divider
Drawable or color to draw between list items.

android:dividerHeight
Height of the divider.

http://developer.android.com/reference/android/widget/ListView.html

like image 187
Ganapathy C Avatar answered Nov 04 '22 14:11

Ganapathy C


see the below link Custom ListView

By using Custom ListView we can set the width and color for the listview

like image 29
Pinki Avatar answered Nov 04 '22 15:11

Pinki