3

Possible Duplicate:
Android Drawing Separator/Divider Line in Layout?

I am making something similar to a list view, without actually making a list view...

I have a bunch of text views in a vertical layout, and I am wondering if it is possible to get some sort of divider line in between them. The line dividers like they have in List Views..

Any help?

Community
  • 1
  • 1
user802609
  • 779
  • 4
  • 18
  • 34

2 Answers2

19

You can use a textview to create a divider line

Example:

<TextView          
      android:layout_width="fill_parent" 
      android:layout_height="1px" 
      android:background="#DADADA" />
Sam
  • 206
  • 1
  • 2
4

You can insert View with background of any color you want and

layout_height = "1dp" (or more if necesary) and

layout_width="fill_parent".

Hussain
  • 5,446
  • 4
  • 38
  • 50
Maxim
  • 2,991
  • 14
  • 18