• Android随笔


    bbuton_danger_rounded.xml:

    <?xml version="1.0" encoding="utf-8"?>
    <selector xmlns:android="http://schemas.android.com/apk/res/android">
    
        <item android:state_pressed="true"><shape>
                <solid android:color="@color/bbutton_danger_pressed" />
                <stroke android:width="1dp" android:color="@color/bbutton_danger_edge" />
                <corners android:radius="@dimen/bbuton_rounded_corner_radius"/>
            </shape></item>
            
        
        <item android:state_enabled="false"><shape>
            <solid android:color="@color/bbutton_danger_disabled" />
                <stroke android:width="1dp" android:color="@color/bbutton_danger_disabled_edge" />
                <corners android:radius="@dimen/bbuton_rounded_corner_radius"/>
            </shape></item>
            
    
        <item><shape>
                <solid android:color="@color/bbutton_danger" />
                <stroke android:width="1dp" android:color="@color/bbutton_danger_edge" />
                <corners android:radius="@dimen/bbuton_rounded_corner_radius"/>
            </shape></item>
        
            
    </selector>

    color.xml:

    <?xml version="1.0" encoding="utf-8"?>
    <resources>
        <color name="bbutton_danger_pressed">#ffd2322d</color>
        <color name="bbutton_danger_edge">#ffd43f3a</color>
        <color name="bbutton_danger_disabled">#a5d9534f</color>
        <color name="bbutton_danger_disabled_edge">#a5d43f3a</color>
        <color name="bbutton_danger">#ffd9534f</color>
        <color name="text_font_white">#FFFFFF</color>
    </resources>
  • 相关阅读:
    正则表达式
    文件读写
    列表和数组变量
    Perl基础
    [转] bias和variance
    Chapter 1
    Come back to CNblogs
    SentenceGeneration
    句子生成器
    ant相关操作
  • 原文地址:https://www.cnblogs.com/wrx166/p/14909516.html
Copyright © 2020-2023  润新知