--ADVERTISEMENT--

In android, there are many ways to draw lines. In this example, I will show how to create vertical and horizontal lines in android using android XML. Here, I have drawn vertical and horizontal lines using android <View --------/>.

Related:
Check Internet Connection in Android
How to Implement Ripple Effect in Android
Android WebView Tutorial with Example

Vertical Line in Android

res/layout/android_vertical_line.xml

How to Create Vertical Line in Android Using XML
Android Vertical Line Example

Horizontal Line in Android

res/layout/android_horizontal_line.xml

How to Create Horizontal Lines in Android Using XML
Android Horizontal Line Example

Post a Comment

Powered by Blogger.