‘我的’布局完善
This commit is contained in:
8
app/src/main/res/drawable/switch_custom_thumb_off.xml
Normal file
8
app/src/main/res/drawable/switch_custom_thumb_off.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="oval">
|
||||
<solid android:color="#AAA" />
|
||||
<size
|
||||
android:width="20dp"
|
||||
android:height="20dp" />
|
||||
</shape>
|
||||
8
app/src/main/res/drawable/switch_custom_thumb_on.xml
Normal file
8
app/src/main/res/drawable/switch_custom_thumb_on.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="oval">
|
||||
<solid android:color="#94C5FF" />
|
||||
<size
|
||||
android:width="20dp"
|
||||
android:height="20dp" />
|
||||
</shape>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@drawable/switch_custom_thumb_on" android:state_checked="true" />
|
||||
<item android:drawable="@drawable/switch_custom_thumb_off" android:state_checked="false" />
|
||||
</selector>
|
||||
9
app/src/main/res/drawable/switch_custom_track_off.xml
Normal file
9
app/src/main/res/drawable/switch_custom_track_off.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<solid android:color="#E3E3E3" />
|
||||
<stroke
|
||||
android:width="1dp"
|
||||
android:color="#00000000" />
|
||||
<corners android:radius="20dp" />
|
||||
</shape>
|
||||
10
app/src/main/res/drawable/switch_custom_track_on.xml
Normal file
10
app/src/main/res/drawable/switch_custom_track_on.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<solid android:color="#B6D6FE" />
|
||||
|
||||
<stroke
|
||||
android:width="1dp"
|
||||
android:color="#00000000" />
|
||||
<corners android:radius="20dp" />
|
||||
</shape>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@drawable/switch_custom_track_on" android:state_checked="true" />
|
||||
<item android:drawable="@drawable/switch_custom_track_off" android:state_checked="false" />
|
||||
</selector>
|
||||
Reference in New Issue
Block a user