10

I was wondering how to create straight lines in xml.

ultimatenirvana
  • 391
  • 3
  • 4
  • 12

2 Answers2

26

Use this to display a single white line with xml

<View android:layout_width="1dip"
    android:layout_height="fill_parent"
android:background="#FFFFFF" />
andreasg
  • 1,050
  • 8
  • 8
3

I think you are looking for something like this...

Vertical line using XML drawable

Community
  • 1
  • 1
mixkat
  • 3,745
  • 8
  • 37
  • 56