zoukankan      html  css  js  c++  java
  • Selector

    一 . Button文字颜色选择器

    <selector xmlns:android="http://schemas.android.com/apk/res/android" >
        <item android:state_selected="true" android:color="@color/actionbar_back" />
        <item android:state_focused="true" android:color="@color/actionbar_back" />
        <item android:state_pressed="true" android:color="@color/actionbar_back" />
        <item android:color="@color/list_title" />
    </selector>

    二 . Button背景选择器

    <selector xmlns:android="http://schemas.android.com/apk/res/android">
        <item android:drawable="@drawable/know_highlight" android:state_focused="true"></item>
        <item android:drawable="@drawable/know_highlight" android:state_pressed="true"></item>
        <item android:drawable="@drawable/know"></item>
    </selector>

    三 . Radiobutton文字颜色选择器

    <selector xmlns:android="http://schemas.android.com/apk/res/android" >
        <item android:state_checked="false" android:color="@color/search_radio_text"></item>
        <item android:state_checked="true" android:color="@color/search_radio_text_check"></item> 
    </selector>

    四 . Radiobutton背景选择器

    <selector xmlns:android="http://schemas.android.com/apk/res/android" >
        <item android:state_checked="false" android:drawable="@drawable/top_search_bd"></item>
        <item android:state_checked="true" android:drawable="@drawable/top_search_bd_check"></item>
    </selector>
  • 相关阅读:
    nginx配置vue项目
    TexturePacker工具对素材打包
    java使用动态链接库
    java.lang.UnsatisfiedLinkError: no A in java.library.path
    pi4j与Spring Boot
    迪文屏串口修改数据
    迪文屏常用串口指令
    postcss-px-to-viewport移动端布局
    vue-lazyload延迟加载
    fastclick延迟300ms
  • 原文地址:https://www.cnblogs.com/suiyilaile/p/5257599.html
Copyright © 2011-2022 走看看