add something like this in your layout between the views you want to separate:
在你想要分离的视图之间的布局中添加这样的东西:
Hope it helps :)
希望它能帮助:)
#4
6
Try this
试试这个
#5
6
Creating it once and using it wherever needed is a good idea. Add this in your styles.xml:
创建一次并且在任何需要的地方使用它是一个好主意。将其添加到样式中。
and add this in your xml code, where a line divider is needed:
并将其添加到xml代码中,其中需要行分隔符:
Originally answered by toddles_fp for this question: Android Drawing Separator/Divider Line in Layout?
最初的回答是:Android在布局中划分分隔线/分隔线?
#6
2
#7
1
In each parent LinearLayout for which you want dividers between components, add android:divider="?android:dividerHorizontal" or android:divider="?android:dividerVertical.