当前位置 : 主页 > 网页制作 > xml >

3分割线左右间距(LinearLayoutManager.VERTICAL)

来源:互联网 收集:自由互联 发布时间:2021-06-13
?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" ImageView android:id="@+id/

<?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">

<ImageView android:id="@+id/img_item" android:layout_width="match_parent" android:layout_height="70dp" android:background="@color/colorPrimary" /> <!--分割线 设置margin--> <View android:layout_width="match_parent" android:layout_height="3dp" android:layout_marginLeft="15dp" android:layout_marginRight="15dp" android:background="#680707" /></LinearLayout> ————————————————

网友评论