version:2.6
fix: update:优化爱心提醒
This commit is contained in:
13
app/src/main/res/drawable/alarm_background.xml
Normal file
13
app/src/main/res/drawable/alarm_background.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<!-- 内部颜色 -->
|
||||
<solid android:color="@color/white" />
|
||||
<!-- 圆角的幅度 -->
|
||||
<corners android:radius="16dp" />
|
||||
|
||||
<!-- <padding-->
|
||||
<!-- android:bottom="0dp"-->
|
||||
<!-- android:left="8dp"-->
|
||||
<!-- android:right="8dp"-->
|
||||
<!-- android:top="0dp" />-->
|
||||
</shape>
|
||||
13
app/src/main/res/drawable/alarm_notifi_background.xml
Normal file
13
app/src/main/res/drawable/alarm_notifi_background.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<!-- 内部颜色 -->
|
||||
<solid android:color="@color/gray" />
|
||||
<!-- 圆角的幅度 -->
|
||||
<corners android:radius="16dp" />
|
||||
|
||||
<padding
|
||||
android:bottom="8dp"
|
||||
android:left="8dp"
|
||||
android:right="8dp"
|
||||
android:top="8dp" />
|
||||
</shape>
|
||||
19
app/src/main/res/drawable/gray_thumb.xml
Normal file
19
app/src/main/res/drawable/gray_thumb.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle" >
|
||||
|
||||
<!-- 高度40 -->
|
||||
<size android:height="32dp" android:width="32dp"/>
|
||||
<!-- 圆角弧度 20 -->
|
||||
<corners android:radius="16dp"/>
|
||||
|
||||
|
||||
<!-- 变化率 -->
|
||||
<gradient
|
||||
android:endColor="#ffffff"
|
||||
android:startColor="#ffffff" />
|
||||
|
||||
<stroke android:width="1dp"
|
||||
android:color="@color/gray"/>
|
||||
|
||||
</shape>
|
||||
12
app/src/main/res/drawable/gray_track.xml
Normal file
12
app/src/main/res/drawable/gray_track.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle" >
|
||||
<!-- 高度30 此处设置宽度无效-->
|
||||
<size android:height="16dp"/>
|
||||
<!-- 圆角弧度 15 -->
|
||||
<corners android:radius="16dp"/>
|
||||
<!-- 变化率 定义从左到右的颜色不变 -->
|
||||
<gradient
|
||||
android:endColor="@color/gray"
|
||||
android:startColor="@color/gray" />
|
||||
</shape>
|
||||
19
app/src/main/res/drawable/green_thumb.xml
Normal file
19
app/src/main/res/drawable/green_thumb.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle" >
|
||||
|
||||
<!-- 高度40 -->
|
||||
<size android:height="32dp" android:width="32dp"/>
|
||||
<!-- 圆角弧度 20 -->
|
||||
<corners android:radius="16dp"/>
|
||||
|
||||
|
||||
<!-- 变化率 -->
|
||||
<gradient
|
||||
android:endColor="#31B97D"
|
||||
android:startColor="#31B97D" />
|
||||
|
||||
<stroke android:width="1dp"
|
||||
android:color="#9FDDC3"/>
|
||||
|
||||
</shape>
|
||||
12
app/src/main/res/drawable/green_track.xml
Normal file
12
app/src/main/res/drawable/green_track.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
|
||||
<!-- 高度30 -->
|
||||
<size android:height="16dp"/>
|
||||
<!-- 圆角弧度 15 -->
|
||||
<corners android:radius="16dp"/>
|
||||
<!-- 变化率 -->
|
||||
<gradient
|
||||
android:endColor="#9FDDC3"
|
||||
android:startColor="#9FDDC3" />
|
||||
</shape>
|
||||
13
app/src/main/res/drawable/join_background.xml
Normal file
13
app/src/main/res/drawable/join_background.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<!-- 内部颜色 -->
|
||||
<solid android:color="@color/default_background_color" />
|
||||
<!-- 圆角的幅度 -->
|
||||
<corners android:radius="16dp" />
|
||||
|
||||
<padding
|
||||
android:bottom="0dp"
|
||||
android:left="8dp"
|
||||
android:right="8dp"
|
||||
android:top="0dp" />
|
||||
</shape>
|
||||
6
app/src/main/res/drawable/thumb.xml
Normal file
6
app/src/main/res/drawable/thumb.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- 按钮的选择器,可以设置按钮在不同状态下的时候,按钮不同的颜色 -->
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
<item android:state_checked="true" android:drawable="@drawable/green_thumb" />
|
||||
<item android:drawable="@drawable/gray_thumb" />
|
||||
</selector>
|
||||
6
app/src/main/res/drawable/track.xml
Normal file
6
app/src/main/res/drawable/track.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- 底层下滑条的样式选择器,可控制Switch在不同状态下,底下下滑条的颜色 -->
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
<item android:state_checked="true" android:drawable="@drawable/green_track" />
|
||||
<item android:drawable="@drawable/gray_track" />
|
||||
</selector>
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<!-- 内部颜色 -->
|
||||
<solid android:color="@color/notice_blue" />
|
||||
<solid android:color="@color/voice_color" />
|
||||
<!-- 圆角的幅度 -->
|
||||
<corners
|
||||
android:bottomLeftRadius="30dp"
|
||||
|
||||
Reference in New Issue
Block a user