各种常用样式

edit_bg.xml

<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" xmlns:Android="http://schemas.android.com/tools">
    <item>
    <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
     <solid android:color="#EFEFEF"/>
     <corners android:radius="3dip"/>
     <stroke android:width="0.5px" Android:color="#505050"/>
     </shape>
    </item>
</layer-list>

head_line.xml

<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
    <item>
        <shape>
            <stroke
                android:width="1dp"
                android:color="#009966" />
        </shape>
    </item>
</layer-list>

linear_layout_bg.xml

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
    <solid android:color="#e6e6e6" />
    <stroke
            android:width="1dp"
            android:color="#1296db" />
    <padding
            android:bottom="1dp"
            android:left="1dp"
            android:right="1dp"
            android:top="1dp" />
    <corners android:radius="1dp" />
</shape>
</shape>
<?xml version="1.0" encoding="UTF-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
    <!-- 连框颜色值 -->
    <item>
        <shape>
            <solid android:color="#e6e6e6" />
        </shape>
    </item>
    <!-- 主体背景颜色值 -->
    <item android:bottom="1dp"> <!--设置只有底部有边框-->
        <shape>
            <solid android:color="#fff" />
        </shape>
    </item>
</layer-list>

 

posted @ 2020-05-09 10:53  青竹玉简  阅读(206)  评论(0编辑  收藏  举报