drawable+valuse+valuse-w820dp

radio_selector

<selector xmlns:android="http://schemas.android.com/apk/res/android"> <!--根据选中和未选中的状态,去设置背景颜色的图片--> <item android:state_checked="true" android:drawable="@drawable/home_1"/> <item android:state_checked="false" android:drawable="@drawable/home_0"/> <item android:drawable="@color/colorPrimary"/></selector>
++++++++++++++++++++++++++++++++++++++++++
radio_selector2
<selector xmlns:android="http://schemas.android.com/apk/res/android">

    <!--根据选中和未选中的状态,去设置背景颜色的图片-->

    <item android:state_checked="true" android:drawable="@drawable/totext_1"/>
    <item android:state_checked="false" android:drawable="@drawable/totext_0"/>
    <item android:drawable="@color/colorPrimary2"/>

</selector>
++++++++++++++++++++++++++++++++++++++++++++++++++
radio_selector3
<selector xmlns:android="http://schemas.android.com/apk/res/android">

    <!--根据选中和未选中的状态,去设置背景颜色的图片-->
    <item android:state_checked="true" android:drawable="@drawable/user_1"/>
    <item android:state_checked="false" android:drawable="@drawable/user_0"/>
    <item android:drawable="@color/colorPrimary3"/>
</selector>
++++++++++++++++++++++++++++++++++++++++++++++++++++
colors
<resources>
    <color name="colorPrimary">#3F51B5</color>
    <color name="colorPrimary2">#3F51B5</color>
    <color name="colorPrimary3">#3F51B5</color>
    <color name="colorPrimaryDark">#303F9F</color>
    <color name="colorAccent">#FF4081</color>
</resources>
+++++++++++++++++++++++++++++++++++++++++++++++++++++
dimens
<resources>
    <!-- Default screen margins, per the Android Design guidelines. -->
    <dimen name="activity_horizontal_margin">16dp</dimen>
    <dimen name="activity_vertical_margin">16dp</dimen>
</resources>
++++++++++++++++++++++++++++++++++++++++++++++++
strings
<resources>
    <string name="app_name">My Appwzm</string>
    <string name="xlistview_header_hint_normal">下拉刷新</string>
    <string name="xlistview_header_hint_ready">松开刷新数据</string>
    <string name="xlistview_header_hint_loading">正在加载...</string>
    <string name="xlistview_header_last_time">上次更新时间:</string>
    <string name="xlistview_footer_hint_normal">查看更多</string>
    <string name="xlistview_footer_hint_ready">松开载入更多</string>
</resources>
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
styles
<resources>

    <!-- Base application theme. -->
    <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
        <!-- Customize your theme here. -->
        <item name="colorPrimary">@color/colorPrimary</item>
        <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
        <item name="colorAccent">@color/colorAccent</item>
    </style>
    <style name="NoTheme" parent="Theme.AppCompat.Light.NoActionBar">
        <!-- Customize your theme here. -->
        <item name="colorPrimary">@color/colorPrimary</item>
        <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
        <item name="colorAccent">@color/colorAccent</item>
    </style>

</resources>
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
820dimens
<resources>
    <!-- Example customization of dimensions originally defined in res/values/dimens.xml
         (such as screen margins) for screens with more than 820dp of available width. This
         would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively). -->
    <dimen name="activity_horizontal_margin">64dp</dimen>
</resources>


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值