...">
美文网首页安卓样式
LinearLayout中添加分割线

LinearLayout中添加分割线

作者: 水固态中 | 来源:发表于2017-11-30 11:30 被阅读0次
    LinearLayout中添加分割线

    推荐方法:

    shape文件

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

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

        <solid android:color="#dddddd" />

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

    </shape>

    LinearLayout属性

    android:divider="@drawable/bottom_border"
    android:showDividers = "middle"

    middle 在每一项中间添加分割线

    end 在整体的最后一项添加分割线

    beginning 在整体的最上方添加分割线

    none 无

    相关文章

      网友评论

        本文标题:LinearLayout中添加分割线

        本文链接:https://www.haomeiwen.com/subject/uccvbxtx.html