how to make line in android lyout code example
Example 1: android separator line in view
<View
android:id="@+id/view1"
android:layout_width="fill_parent"
android:layout_height="2dp"
android:layout_alignParentRight="true"
android:layout_below="@+id/textView1"
android:layout_marginTop="20dp"
android:background="#ff9703" />
Example 2: code to add horizonatl line in xml
<View
android:layout_width="2dp"
android:layout_height="match_parent"
android:layout_marginTop="4dp"
android:background="@android:color/darker_gray" />