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>
drawable+valuse+valuse-w820dp
最新推荐文章于 2021-05-27 16:14:44 发布