MandeepKaur
MandeepKaur

Reputation: 31

Draw a vertical line separated by equal parts in Android

I want to draw a vertical line separated by equal parts(Like a Scale) in Android. Please help me to make a vertical measuring scale..?

I can easily create a vertical line but to divide that in to several pieces is a task for me. can someone help on that and line will be a scrollable.

Upvotes: 1

Views: 427

Answers (1)

Android
Android

Reputation: 9023

use this for horizontal divider

<View
    android:layout_width="1dp"
    android:layout_height="match_parent"
    android:background="@color/honeycombish_blue" />

and this for vertical divider

<View
    android:layout_width="match_parent"
    android:layout_height="1dp"
    android:background="@color/honeycombish_blue" />

Upvotes: 1

Related Questions