6.6.3 - Alpha2 - 主题色扩充适配范围并支持更多控件类型
This commit is contained in:
47
app/src/main/res/drawable/btn_radio_off_mtrl.xml
Normal file
47
app/src/main/res/drawable/btn_radio_off_mtrl.xml
Normal file
@@ -0,0 +1,47 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2015 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<vector
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:name="btn_radio_to_on_mtrl"
|
||||
android:width="32dp"
|
||||
android:viewportWidth="32"
|
||||
android:height="32dp"
|
||||
android:viewportHeight="32"
|
||||
android:tint="?attr/colorPrimary">
|
||||
<group
|
||||
android:name="btn_radio_to_on_mtrl_0"
|
||||
android:translateX="16"
|
||||
android:translateY="16" >
|
||||
<group
|
||||
android:name="ring_outer" >
|
||||
<path
|
||||
android:name="ring_outer_path"
|
||||
android:strokeColor="#FF000000"
|
||||
android:strokeWidth="2"
|
||||
android:pathData="M 0.0,-9.0 c 4.9705627482,0.0 9.0,4.0294372518 9.0,9.0 c 0.0,4.9705627482 -4.0294372518,9.0 -9.0,9.0 c -4.9705627482,0.0 -9.0,-4.0294372518 -9.0,-9.0 c 0.0,-4.9705627482 4.0294372518,-9.0 9.0,-9.0 Z" />
|
||||
</group>
|
||||
<group
|
||||
android:name="dot_group"
|
||||
android:scaleX="0"
|
||||
android:scaleY="0" >
|
||||
<path
|
||||
android:name="dot_path"
|
||||
android:pathData="M 0.0,-5.0 c -2.7619934082,0.0 -5.0,2.2380065918 -5.0,5.0 c 0.0,2.7619934082 2.2380065918,5.0 5.0,5.0 c 2.7619934082,0.0 5.0,-2.2380065918 5.0,-5.0 c 0.0,-2.7619934082 -2.2380065918,-5.0 -5.0,-5.0 Z"
|
||||
android:fillColor="#FF000000" />
|
||||
</group>
|
||||
</group>
|
||||
</vector>
|
||||
45
app/src/main/res/drawable/btn_radio_on_mtrl.xml
Normal file
45
app/src/main/res/drawable/btn_radio_on_mtrl.xml
Normal file
@@ -0,0 +1,45 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2015 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<vector
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:name="btn_radio_to_off_mtrl"
|
||||
android:width="32dp"
|
||||
android:viewportWidth="32"
|
||||
android:height="32dp"
|
||||
android:viewportHeight="32"
|
||||
android:tint="?attr/colorPrimary">
|
||||
<group
|
||||
android:name="btn_radio_to_off_mtrl_0"
|
||||
android:translateX="16"
|
||||
android:translateY="16" >
|
||||
<group
|
||||
android:name="ring_outer" >
|
||||
<path
|
||||
android:name="ring_outer_path"
|
||||
android:strokeColor="#FF000000"
|
||||
android:strokeWidth="2"
|
||||
android:pathData="M 0.0,-9.0 c 4.9705627482,0.0 9.0,4.0294372518 9.0,9.0 c 0.0,4.9705627482 -4.0294372518,9.0 -9.0,9.0 c -4.9705627482,0.0 -9.0,-4.0294372518 -9.0,-9.0 c 0.0,-4.9705627482 4.0294372518,-9.0 9.0,-9.0 Z" />
|
||||
</group>
|
||||
<group
|
||||
android:name="dot_group" >
|
||||
<path
|
||||
android:name="dot_path"
|
||||
android:pathData="M 0.0,-5.0 c -2.7619934082,0.0 -5.0,2.2380065918 -5.0,5.0 c 0.0,2.7619934082 2.2380065918,5.0 5.0,5.0 c 2.7619934082,0.0 5.0,-2.2380065918 5.0,-5.0 c 0.0,-2.7619934082 -2.2380065918,-5.0 -5.0,-5.0 Z"
|
||||
android:fillColor="#FF000000" />
|
||||
</group>
|
||||
</group>
|
||||
</vector>
|
||||
BIN
app/src/main/res/drawable/ic_add_smaller_48dp.png
Normal file
BIN
app/src/main/res/drawable/ic_add_smaller_48dp.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.4 KiB |
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<corners android:radius="4dp"/>
|
||||
<corners android:radius="12dp"/>
|
||||
|
||||
<solid android:color="#727379"/>
|
||||
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<corners android:radius="12dp"/>
|
||||
|
||||
<solid android:color="#00000000"/>
|
||||
|
||||
<stroke android:width="2dp" android:color="#000000" />
|
||||
|
||||
</shape>
|
||||
Reference in New Issue
Block a user