11

I was wondering how to create straight lines in xml.

ultimatenirvana
  • 451
  • 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,883
  • 10
  • 40
  • 58