Home » Android » android – How to create lines in xml

android – How to create lines in xml

Posted by: admin May 14, 2020 Leave a comment

Questions:

I was wondering how to create straight lines in xml.

How to&Answers:

Use this to display a single white line with xml

<View android:layout_width="1dip"
    android:layout_height="fill_parent"
android:background="#FFFFFF" />

Answer:

I think you are looking for something like this…

Vertical line using XML drawable