• 各种常用样式


    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>
  • 相关阅读:
    项目相关的风险要素及分类
    IT从业人员必看的10个论坛(转)
    Android Input设备debug技巧
    Android中如何判断是否联网
    paip.tree 生成目录树到txt后的折叠查看
    hdu 4737 A Bit Fun
    FLASH ROM与EEPROM的区别
    Robot Framework学习路线
    Distinguishing Between Embedded and General-Purpose Computing
    服务的生命周期
  • 原文地址:https://www.cnblogs.com/matd/p/12855944.html
Copyright © 2020-2023  润新知