Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
polysoft-nafmii
/
polysoft-android
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b00c5e6c
authored
Jul 14, 2021
by
amateur
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1
1 parent
05111bfd
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
73 additions
and
4 deletions
app/src/main/res/drawable/home_radio_selector.xml
app/src/main/res/drawable/icons_home_selector.xml
app/src/main/res/drawable/icons_learn_selector.xml
app/src/main/res/drawable/icons_member_selector.xml
app/src/main/res/drawable/icons_my_selector.xml
app/src/main/res/layout/activity_home.xml
app/src/main/res/values/colors.xml
app/src/main/res/values/styles.xml
app/src/main/res/drawable/home_radio_selector.xml
View file @
b00c5e6
<?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/t
eal_200
"
android:state_checked=
"true"
/>
<item
android:color=
"@color/t
heme_color
"
android:state_checked=
"true"
/>
</selector>
</selector>
\ No newline at end of file
\ No newline at end of file
app/src/main/res/drawable/icons_home_selector.xml
0 → 100644
View file @
b00c5e6
<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
app/src/main/res/drawable/icons_learn_selector.xml
0 → 100644
View file @
b00c5e6
<?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
app/src/main/res/drawable/icons_member_selector.xml
0 → 100644
View file @
b00c5e6
<?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
app/src/main/res/drawable/icons_my_selector.xml
0 → 100644
View file @
b00c5e6
<?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
app/src/main/res/layout/activity_home.xml
View file @
b00c5e6
...
@@ -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>
...
...
app/src/main/res/values/colors.xml
View file @
b00c5e6
...
@@ -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
app/src/main/res/values/styles.xml
View file @
b00c5e6
<resources>
<resources>
<style
name=
"Nafmii.Widget.Home.RadioButton"
parent=
""
>
<style
name=
"Nafmii.Widget.Home.RadioButton"
parent=
""
>
<item
name=
"android:textSize"
>
1
6
sp
</item>
<item
name=
"android:textSize"
>
1
4
sp
</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>
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment