LinearLayout分(hun)割线

来源:互联网 发布:淘宝人工客服电话400 编辑:程序博客网 时间:2024/04/30 12:30

给LinearLayout的每个子项做昏割线
要么到处写View,每个需要先的地方定义一个view,
要么用showDividers和divider属性

 <LinearLayout            android:layout_width="match_parent"            android:layout_height="match_parent"            android:orientation="vertical"            android:showDividers="middle|end|beginning"            android:divider="@drawable/spacer_midium">

space_mnidium:

<?xml version="1.0" encoding="utf-8"?><shape xmlns:android="http://schemas.android.com/apk/res/android">    <solid android:color="#c8c8c8" />    <size android:height="1px" /></shape> 
0 0
原创粉丝点击