Commit b00c5e6c by amateur

1

1 parent 05111bfd
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android"> <selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="@color/black" android:state_checked="false" /> <item android:color="@color/grey_999" android:state_checked="false" />
<item android:color="@color/teal_200" android:state_checked="true" /> <item android:color="@color/theme_color" android:state_checked="true" />
</selector> </selector>
\ No newline at end of file \ No newline at end of file
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:width="35dp"
android:height="35dp"
android:top="2dp">
<selector>
<item
android:drawable="@mipmap/icon_home"
android:state_checked="false"></item>
<item
android:drawable="@mipmap/icon_home_pressed"
android:state_checked="true"></item>
</selector>
</item>
</layer-list>
\ No newline at end of file \ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:width="35dp"
android:height="35dp"
android:top="2dp">
<selector>
<item
android:drawable="@mipmap/icon_learn"
android:state_checked="false"></item>
<item
android:drawable="@mipmap/icon_learn_pressed"
android:state_checked="true"></item>
</selector>
</item>
</layer-list>
\ No newline at end of file \ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:width="35dp"
android:height="35dp"
android:top="2dp">
<selector>
<item
android:drawable="@mipmap/icon_member"
android:state_checked="false"></item>
<item
android:drawable="@mipmap/icon_member_pressed"
android:state_checked="true"></item>
</selector>
</item>
</layer-list>
\ No newline at end of file \ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:width="35dp"
android:height="35dp"
android:top="2dp">
<selector>
<item
android:drawable="@mipmap/icon_my"
android:state_checked="false"></item>
<item
android:drawable="@mipmap/icon_my_pressed"
android:state_checked="true"></item>
</selector>
</item>
</layer-list>
\ No newline at end of file \ No newline at end of file
...@@ -43,21 +43,25 @@ ...@@ -43,21 +43,25 @@
android:id="@+id/home_btn_home" android:id="@+id/home_btn_home"
style="@style/Nafmii.Widget.Home.RadioButton" style="@style/Nafmii.Widget.Home.RadioButton"
android:checked="true" android:checked="true"
android:drawableTop="@drawable/icons_home_selector"
android:text="首页" /> android:text="首页" />
<RadioButton <RadioButton
android:id="@+id/home_btn_member" android:id="@+id/home_btn_member"
style="@style/Nafmii.Widget.Home.RadioButton" style="@style/Nafmii.Widget.Home.RadioButton"
android:drawableTop="@drawable/icons_member_selector"
android:text="会员" /> android:text="会员" />
<RadioButton <RadioButton
android:id="@+id/home_btn_learn" android:id="@+id/home_btn_learn"
style="@style/Nafmii.Widget.Home.RadioButton" style="@style/Nafmii.Widget.Home.RadioButton"
android:drawableTop="@drawable/icons_learn_selector"
android:text="学习" /> android:text="学习" />
<RadioButton <RadioButton
android:id="@+id/home_btn_my" android:id="@+id/home_btn_my"
style="@style/Nafmii.Widget.Home.RadioButton" style="@style/Nafmii.Widget.Home.RadioButton"
android:drawableTop="@drawable/icons_my_selector"
android:text="我的" /> android:text="我的" />
</RadioGroup> </RadioGroup>
......
...@@ -12,4 +12,6 @@ ...@@ -12,4 +12,6 @@
<color name="light_blue_A200">#FF40C4FF</color> <color name="light_blue_A200">#FF40C4FF</color>
<color name="light_blue_A400">#FF00B0FF</color> <color name="light_blue_A400">#FF00B0FF</color>
<color name="black_overlay">#66000000</color> <color name="black_overlay">#66000000</color>
<color name="theme_color">#206CB3</color>
<color name="grey_999">#999999</color>
</resources> </resources>
\ No newline at end of file \ No newline at end of file
<resources> <resources>
<style name="Nafmii.Widget.Home.RadioButton" parent=""> <style name="Nafmii.Widget.Home.RadioButton" parent="">
<item name="android:textSize">16sp</item> <item name="android:textSize">14sp</item>
<item name="android:layout_weight">1</item> <item name="android:layout_weight">1</item>
<item name="android:button">@null</item> <item name="android:button">@null</item>
<item name="android:gravity">center</item> <item name="android:gravity">center|bottom</item>
<item name="android:textColor">@drawable/home_radio_selector</item> <item name="android:textColor">@drawable/home_radio_selector</item>
<item name="android:layout_width">wrap_content</item> <item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">match_parent</item> <item name="android:layout_height">match_parent</item>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!