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
(要添加垂直分隔符,请切换layout_width
和layout_height
值)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…