添加调色板对话框,未调试。
This commit is contained in:
7
powerbell/src/main/res/drawable/btn_bg_gray.xml
Normal file
7
powerbell/src/main/res/drawable/btn_bg_gray.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<solid android:color="@android:color/darker_gray" />
|
||||
<corners android:radius="6dp" />
|
||||
</shape>
|
||||
|
||||
7
powerbell/src/main/res/drawable/btn_bg_primary.xml
Normal file
7
powerbell/src/main/res/drawable/btn_bg_primary.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<solid android:color="@android:color/holo_blue_light" />
|
||||
<corners android:radius="6dp" />
|
||||
</shape>
|
||||
|
||||
17
powerbell/src/main/res/drawable/dialog_bg_radius.xml
Normal file
17
powerbell/src/main/res/drawable/dialog_bg_radius.xml
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<!-- 背景色:白色 -->
|
||||
<solid android:color="@android:color/white" />
|
||||
<!-- 圆角:12dp(适配小米机型圆角无锯齿) -->
|
||||
<corners android:radius="12dp" />
|
||||
<!-- 边框:浅灰色细边框(避免弹窗边缘模糊) -->
|
||||
<stroke
|
||||
android:width="1dp"
|
||||
android:color="@android:color/darker_gray" />
|
||||
<!-- 内边距:轻微留白,避免内容贴边 -->
|
||||
<padding
|
||||
android:bottom="5dp"
|
||||
android:top="5dp" />
|
||||
</shape>
|
||||
|
||||
10
powerbell/src/main/res/drawable/edittext_bg.xml
Normal file
10
powerbell/src/main/res/drawable/edittext_bg.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="@android:color/white" />
|
||||
<corners android:radius="6dp" />
|
||||
<stroke
|
||||
android:width="1dp"
|
||||
android:color="@android:color/darker_gray" />
|
||||
</shape>
|
||||
|
||||
20
powerbell/src/main/res/drawable/seekbar_progress.xml
Normal file
20
powerbell/src/main/res/drawable/seekbar_progress.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<!-- 进度条未完成部分:浅灰色 -->
|
||||
<item android:id="@android:id/background">
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="@android:color/darker_gray" />
|
||||
<corners android:radius="10dp" />
|
||||
</shape>
|
||||
</item>
|
||||
<!-- 进度条已完成部分:系统蓝色(无需额外定义颜色) -->
|
||||
<item android:id="@android:id/progress">
|
||||
<clip>
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="@android:color/holo_blue_light" />
|
||||
<corners android:radius="10dp" />
|
||||
</shape>
|
||||
</clip>
|
||||
</item>
|
||||
</layer-list>
|
||||
|
||||
15
powerbell/src/main/res/drawable/seekbar_thumb.xml
Normal file
15
powerbell/src/main/res/drawable/seekbar_thumb.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="oval">
|
||||
<!-- 滑块颜色:系统蓝色 -->
|
||||
<solid android:color="@android:color/holo_blue_light" />
|
||||
<!-- 滑块大小:20dp(适配小米机型触摸区域) -->
|
||||
<size
|
||||
android:width="20dp"
|
||||
android:height="20dp" />
|
||||
<!-- 白色边框:区分滑块与进度条 -->
|
||||
<stroke
|
||||
android:width="2dp"
|
||||
android:color="@android:color/white" />
|
||||
</shape>
|
||||
|
||||
Reference in New Issue
Block a user