Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create lines in xml

I was wondering how to create straight lines in xml.

like image 785
ultimatenirvana Avatar asked Mar 15 '11 23:03

ultimatenirvana


2 Answers

Use this to display a single white line with xml

<View android:layout_width="1dip"
    android:layout_height="fill_parent"
android:background="#FFFFFF" />
like image 72
andreasg Avatar answered Oct 01 '22 10:10

andreasg


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

Vertical line using XML drawable

like image 41
mixkat Avatar answered Oct 01 '22 11:10

mixkat