看效果图:

竖线
<View
android:layout_width="1dip"
android:layout_height="match_parent"
android:background="#FF4081"
android:layout_gravity="center_horizontal"
/>
横线
<View android:layout_height="1px"
android:layout_width="match_parent"
android:background="#FF4081"
/>
本文介绍如何使用Android的View组件来绘制竖线和横线。通过设置layout属性和background颜色值,可以轻松实现不同方向的线条展示。对于UI设计者和开发者来说,这是一种简单而实用的方法。
1万+

被折叠的 条评论
为什么被折叠?



