11

I was wondering how to create straight lines in xml.

ultimatenirvana
  • 441
  • 3
  • 5
  • 12

2 Answers2

27

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,070
  • 8
  • 8
3

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

Vertical line using XML drawable

Community
  • 1
  • 1
mixkat
  • 3,775
  • 8
  • 38
  • 57