how to add a divider android xml code example
Example 1: divider android
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@android:color/darker_gray"/>
Example 2: 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" />