Android Drawing Separator/Divider Line in Layout?

The Solution to Android Drawing Separator/Divider Line in Layout? is


I usually use this code to add horizontal line:

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

To add vertical separator, switch the layout_width and layout_height values

~ Answered on 2012-04-23 14:11:44


Most Viewed Questions: