Summary of the method of adding horizontal and vertical lines in Android
1. Add a horizontal line
<View android:layout_height="0.5dip" android:background="#686868" android:layout_width="match_parent"/>
2. Add vertical lines
<View android:layout_height="match_parent" android:background="#686868" android:layout_width="0.5dip"/>
3. Others Of course, there is no problem if you want to write like below
<TextView android:layout_width="fill_parent" android:layout_height="0.5dp" android:background="#686868"/>
I won't say this vertical one, everyone understands it.
Thank you for reading, I hope it can help you. Thank you for your support for this site!