您的位置:首页 > 其它

LinearLayout布局中每个控件之间添加分割线

2016-10-17 13:05 309 查看
在drawable文件夹下创建shape类型的xml

<?xml version="1.0" encoding="utf-8"?>

<shape xmlns:android="http://schemas.android.com/apk/res/android"

    android:shape="rectangle">

    <solid android:color="@color/software_textColor_unselected"></solid>

    <size android:height="1px"></size>
</shape>

在布局中引用

 android:divider="@drawable/hengxian"

 android:showDividers="middle"
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐