.item布局设置分割线

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<!--分割线-->
<View
android:layout_width="match_parent"
android:layout_height="3dp"
android:background="#FFFFFF" />

<ImageView
android:id="@+id/img_item"![在这里插入图片描述](https://img-blog.csdnimg.cn/20190712210659517.jpg?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTMwNDA4MTk=,size_16,color_FFFFFF,t_70)
android:layout_width="match_parent"
android:layout_height="70dp"
android:background="@color/colorPrimary" />

</LinearLayout>

猜你喜欢

转载自www.cnblogs.com/ly570/p/11426885.html