Merge "Use png for switch in SwitchPreference on watch" into cw-f-dev
@@ -1,51 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2016 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.
|
||||
-->
|
||||
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:ordering="sequentially">
|
||||
<objectAnimator
|
||||
android:duration="33"
|
||||
android:interpolator="@android:interpolator/linear"
|
||||
android:propertyName="pathData"
|
||||
android:valueFrom="M 0.0,-7.0 l 0.0,0.0 c 3.8659932486,0.0 7.0,3.1340067514 7.0,7.0 l 0.0,0.0 c 0.0,3.8659932486 -3.1340067514,7.0 -7.0,7.0 l 0.0,0.0 c -3.8659932486,0.0 -7.0,-3.1340067514 -7.0,-7.0 l 0.0,0.0 c 0.0,-3.8659932486 3.1340067514,-7.0 7.0,-7.0 Z"
|
||||
android:valueTo="M 0.0,-7.0 l 0.0,0.0 c 3.8659932486,0.0 7.0,3.1340067514 7.0,7.0 l 0.0,0.0 c 0.0,3.8659932486 -3.1340067514,7.0 -7.0,7.0 l 0.0,0.0 c -3.8659932486,0.0 -7.0,-3.1340067514 -7.0,-7.0 l 0.0,0.0 c 0.0,-3.8659932486 3.1340067514,-7.0 7.0,-7.0 Z"
|
||||
android:valueType="pathType" />
|
||||
<objectAnimator
|
||||
android:duration="49"
|
||||
android:interpolator="@android:interpolator/linear"
|
||||
android:propertyName="pathData"
|
||||
android:valueFrom="M 0.0,-7.0 l 0.0,0.0 c 3.8659932486,0.0 7.0,3.1340067514 7.0,7.0 l 0.0,0.0 c 0.0,3.8659932486 -3.1340067514,7.0 -7.0,7.0 l 0.0,0.0 c -3.8659932486,0.0 -7.0,-3.1340067514 -7.0,-7.0 l 0.0,0.0 c 0.0,-3.8659932486 3.1340067514,-7.0 7.0,-7.0 Z"
|
||||
android:valueTo="M -3.0,-7.0 l 6.0,0.0 c 3.8659932486,0.0 7.0,3.1340067514 7.0,7.0 l 0.0,0.0 c 0.0,3.8659932486 -3.1340067514,7.0 -7.0,7.0 l -6.0,0.0 c -3.8659932486,0.0 -7.0,-3.1340067514 -7.0,-7.0 l 0.0,0.0 c 0.0,-3.8659932486 3.1340067514,-7.0 7.0,-7.0 Z"
|
||||
android:valueType="pathType" />
|
||||
<objectAnimator
|
||||
android:duration="83"
|
||||
android:interpolator="@android:interpolator/linear"
|
||||
android:propertyName="pathData"
|
||||
android:valueFrom="M -3.0,-7.0 l 6.0,0.0 c 3.8659932486,0.0 7.0,3.1340067514 7.0,7.0 l 0.0,0.0 c 0.0,3.8659932486 -3.1340067514,7.0 -7.0,7.0 l -6.0,0.0 c -3.8659932486,0.0 -7.0,-3.1340067514 -7.0,-7.0 l 0.0,0.0 c 0.0,-3.8659932486 3.1340067514,-7.0 7.0,-7.0 Z"
|
||||
android:valueTo="M -3.0,-7.0 l 6.0,0.0 c 3.8659932486,0.0 7.0,3.1340067514 7.0,7.0 l 0.0,0.0 c 0.0,3.8659932486 -3.1340067514,7.0 -7.0,7.0 l -6.0,0.0 c -3.8659932486,0.0 -7.0,-3.1340067514 -7.0,-7.0 l 0.0,0.0 c 0.0,-3.8659932486 3.1340067514,-7.0 7.0,-7.0 Z"
|
||||
android:valueType="pathType" />
|
||||
<objectAnimator
|
||||
android:duration="50"
|
||||
android:interpolator="@android:interpolator/linear"
|
||||
android:propertyName="pathData"
|
||||
android:valueFrom="M -3.0,-7.0 l 6.0,0.0 c 3.8659932486,0.0 7.0,3.1340067514 7.0,7.0 l 0.0,0.0 c 0.0,3.8659932486 -3.1340067514,7.0 -7.0,7.0 l -6.0,0.0 c -3.8659932486,0.0 -7.0,-3.1340067514 -7.0,-7.0 l 0.0,0.0 c 0.0,-3.8659932486 3.1340067514,-7.0 7.0,-7.0 Z"
|
||||
android:valueTo="M 0.0,-7.0 l 0.0,0.0 c 3.8659932486,0.0 7.0,3.1340067514 7.0,7.0 l 0.0,0.0 c 0.0,3.8659932486 -3.1340067514,7.0 -7.0,7.0 l 0.0,0.0 c -3.8659932486,0.0 -7.0,-3.1340067514 -7.0,-7.0 l 0.0,0.0 c 0.0,-3.8659932486 3.1340067514,-7.0 7.0,-7.0 Z"
|
||||
android:valueType="pathType" />
|
||||
<objectAnimator
|
||||
android:duration="33"
|
||||
android:interpolator="@android:interpolator/linear"
|
||||
android:propertyName="pathData"
|
||||
android:valueFrom="M 0.0,-7.0 l 0.0,0.0 c 3.8659932486,0.0 7.0,3.1340067514 7.0,7.0 l 0.0,0.0 c 0.0,3.8659932486 -3.1340067514,7.0 -7.0,7.0 l 0.0,0.0 c -3.8659932486,0.0 -7.0,-3.1340067514 -7.0,-7.0 l 0.0,0.0 c 0.0,-3.8659932486 3.1340067514,-7.0 7.0,-7.0 Z"
|
||||
android:valueTo="M 0.0,-7.0 l 0.0,0.0 c 3.8659932486,0.0 7.0,3.1340067514 7.0,7.0 l 0.0,0.0 c 0.0,3.8659932486 -3.1340067514,7.0 -7.0,7.0 l 0.0,0.0 c -3.8659932486,0.0 -7.0,-3.1340067514 -7.0,-7.0 l 0.0,0.0 c 0.0,-3.8659932486 3.1340067514,-7.0 7.0,-7.0 Z"
|
||||
android:valueType="pathType" />
|
||||
</set>
|
||||
@@ -1,51 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2016 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.
|
||||
-->
|
||||
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:ordering="sequentially">
|
||||
<objectAnimator
|
||||
android:duration="33"
|
||||
android:interpolator="@android:interpolator/linear"
|
||||
android:propertyName="pathData"
|
||||
android:valueFrom="M 0.0,-7.0 l 0.0,0.0 c 3.8659932486,0.0 7.0,3.1340067514 7.0,7.0 l 0.0,0.0 c 0.0,3.8659932486 -3.1340067514,7.0 -7.0,7.0 l 0.0,0.0 c -3.8659932486,0.0 -7.0,-3.1340067514 -7.0,-7.0 l 0.0,0.0 c 0.0,-3.8659932486 3.1340067514,-7.0 7.0,-7.0 Z"
|
||||
android:valueTo="M 0.0,-7.0 l 0.0,0.0 c 3.8659932486,0.0 7.0,3.1340067514 7.0,7.0 l 0.0,0.0 c 0.0,3.8659932486 -3.1340067514,7.0 -7.0,7.0 l 0.0,0.0 c -3.8659932486,0.0 -7.0,-3.1340067514 -7.0,-7.0 l 0.0,0.0 c 0.0,-3.8659932486 3.1340067514,-7.0 7.0,-7.0 Z"
|
||||
android:valueType="pathType" />
|
||||
<objectAnimator
|
||||
android:duration="49"
|
||||
android:interpolator="@android:interpolator/linear"
|
||||
android:propertyName="pathData"
|
||||
android:valueFrom="M 0.0,-7.0 l 0.0,0.0 c 3.8659932486,0.0 7.0,3.1340067514 7.0,7.0 l 0.0,0.0 c 0.0,3.8659932486 -3.1340067514,7.0 -7.0,7.0 l 0.0,0.0 c -3.8659932486,0.0 -7.0,-3.1340067514 -7.0,-7.0 l 0.0,0.0 c 0.0,-3.8659932486 3.1340067514,-7.0 7.0,-7.0 Z"
|
||||
android:valueTo="M -3.0,-7.0 l 6.0,0.0 c 3.8659932486,0.0 7.0,3.1340067514 7.0,7.0 l 0.0,0.0 c 0.0,3.8659932486 -3.1340067514,7.0 -7.0,7.0 l -6.0,0.0 c -3.8659932486,0.0 -7.0,-3.1340067514 -7.0,-7.0 l 0.0,0.0 c 0.0,-3.8659932486 3.1340067514,-7.0 7.0,-7.0 Z"
|
||||
android:valueType="pathType" />
|
||||
<objectAnimator
|
||||
android:duration="83"
|
||||
android:interpolator="@android:interpolator/linear"
|
||||
android:propertyName="pathData"
|
||||
android:valueFrom="M -3.0,-7.0 l 6.0,0.0 c 3.8659932486,0.0 7.0,3.1340067514 7.0,7.0 l 0.0,0.0 c 0.0,3.8659932486 -3.1340067514,7.0 -7.0,7.0 l -6.0,0.0 c -3.8659932486,0.0 -7.0,-3.1340067514 -7.0,-7.0 l 0.0,0.0 c 0.0,-3.8659932486 3.1340067514,-7.0 7.0,-7.0 Z"
|
||||
android:valueTo="M -3.0,-7.0 l 6.0,0.0 c 3.8659932486,0.0 7.0,3.1340067514 7.0,7.0 l 0.0,0.0 c 0.0,3.8659932486 -3.1340067514,7.0 -7.0,7.0 l -6.0,0.0 c -3.8659932486,0.0 -7.0,-3.1340067514 -7.0,-7.0 l 0.0,0.0 c 0.0,-3.8659932486 3.1340067514,-7.0 7.0,-7.0 Z"
|
||||
android:valueType="pathType" />
|
||||
<objectAnimator
|
||||
android:duration="50"
|
||||
android:interpolator="@android:interpolator/linear"
|
||||
android:propertyName="pathData"
|
||||
android:valueFrom="M -3.0,-7.0 l 6.0,0.0 c 3.8659932486,0.0 7.0,3.1340067514 7.0,7.0 l 0.0,0.0 c 0.0,3.8659932486 -3.1340067514,7.0 -7.0,7.0 l -6.0,0.0 c -3.8659932486,0.0 -7.0,-3.1340067514 -7.0,-7.0 l 0.0,0.0 c 0.0,-3.8659932486 3.1340067514,-7.0 7.0,-7.0 Z"
|
||||
android:valueTo="M 0.0,-7.0 l 0.0,0.0 c 3.8659932486,0.0 7.0,3.1340067514 7.0,7.0 l 0.0,0.0 c 0.0,3.8659932486 -3.1340067514,7.0 -7.0,7.0 l 0.0,0.0 c -3.8659932486,0.0 -7.0,-3.1340067514 -7.0,-7.0 l 0.0,0.0 c 0.0,-3.8659932486 3.1340067514,-7.0 7.0,-7.0 Z"
|
||||
android:valueType="pathType" />
|
||||
<objectAnimator
|
||||
android:duration="33"
|
||||
android:interpolator="@android:interpolator/linear"
|
||||
android:propertyName="pathData"
|
||||
android:valueFrom="M 0.0,-7.0 l 0.0,0.0 c 3.8659932486,0.0 7.0,3.1340067514 7.0,7.0 l 0.0,0.0 c 0.0,3.8659932486 -3.1340067514,7.0 -7.0,7.0 l 0.0,0.0 c -3.8659932486,0.0 -7.0,-3.1340067514 -7.0,-7.0 l 0.0,0.0 c 0.0,-3.8659932486 3.1340067514,-7.0 7.0,-7.0 Z"
|
||||
android:valueTo="M 0.0,-7.0 l 0.0,0.0 c 3.8659932486,0.0 7.0,3.1340067514 7.0,7.0 l 0.0,0.0 c 0.0,3.8659932486 -3.1340067514,7.0 -7.0,7.0 l 0.0,0.0 c -3.8659932486,0.0 -7.0,-3.1340067514 -7.0,-7.0 l 0.0,0.0 c 0.0,-3.8659932486 3.1340067514,-7.0 7.0,-7.0 Z"
|
||||
android:valueType="pathType" />
|
||||
</set>
|
||||
BIN
core/res/res/drawable-hdpi/watch_switch_thumb_mtrl_14w.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
core/res/res/drawable-hdpi/watch_switch_thumb_mtrl_15w.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
core/res/res/drawable-hdpi/watch_switch_thumb_mtrl_16w.png
Normal file
|
After Width: | Height: | Size: 793 B |
BIN
core/res/res/drawable-hdpi/watch_switch_thumb_mtrl_17w.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
core/res/res/drawable-hdpi/watch_switch_thumb_mtrl_18w.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
core/res/res/drawable-hdpi/watch_switch_track_mtrl.png
Normal file
|
After Width: | Height: | Size: 910 B |
BIN
core/res/res/drawable-xhdpi/watch_switch_thumb_mtrl_14w.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
core/res/res/drawable-xhdpi/watch_switch_thumb_mtrl_15w.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
core/res/res/drawable-xhdpi/watch_switch_thumb_mtrl_16w.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
core/res/res/drawable-xhdpi/watch_switch_thumb_mtrl_17w.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
core/res/res/drawable-xhdpi/watch_switch_thumb_mtrl_18w.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
core/res/res/drawable-xhdpi/watch_switch_track_mtrl.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
core/res/res/drawable-xxhdpi/watch_switch_thumb_mtrl_14w.png
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
core/res/res/drawable-xxhdpi/watch_switch_thumb_mtrl_15w.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
core/res/res/drawable-xxhdpi/watch_switch_thumb_mtrl_16w.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
core/res/res/drawable-xxhdpi/watch_switch_thumb_mtrl_17w.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
core/res/res/drawable-xxhdpi/watch_switch_thumb_mtrl_18w.png
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
core/res/res/drawable-xxhdpi/watch_switch_track_mtrl.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
@@ -1,27 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2016 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:width="20dp"
|
||||
android:height="40dp"
|
||||
android:viewportHeight="40"
|
||||
android:viewportWidth="20">
|
||||
<group
|
||||
android:translateX="10"
|
||||
android:translateY="20">
|
||||
<path
|
||||
android:name="thumb_path"
|
||||
android:fillColor="@color/white"
|
||||
android:pathData="M 0.0,-7.0 l 0.0,0.0 c 3.8659932486,0.0 7.0,3.1340067514 7.0,7.0 l 0.0,0.0 c 0.0,3.8659932486 -3.1340067514,7.0 -7.0,7.0 l 0.0,0.0 c -3.8659932486,0.0 -7.0,-3.1340067514 -7.0,-7.0 l 0.0,0.0 c 0.0,-3.8659932486 3.1340067514,-7.0 7.0,-7.0 Z" />
|
||||
</group>
|
||||
</vector>
|
||||
@@ -15,21 +15,79 @@
|
||||
android:constantSize="true">
|
||||
<item
|
||||
android:id="@+id/off"
|
||||
android:drawable="@drawable/watch_switch_thumb_material"
|
||||
android:drawable="@drawable/watch_switch_thumb_mtrl_14w"
|
||||
android:state_enabled="false" />
|
||||
<item
|
||||
android:id="@+id/on"
|
||||
android:drawable="@drawable/watch_switch_thumb_material"
|
||||
android:drawable="@drawable/watch_switch_thumb_mtrl_14w"
|
||||
android:state_checked="true" />
|
||||
<item
|
||||
android:id="@+id/off"
|
||||
android:drawable="@drawable/watch_switch_thumb_material" />
|
||||
android:drawable="@drawable/watch_switch_thumb_mtrl_14w" />
|
||||
<transition
|
||||
android:drawable="@drawable/watch_switch_thumb_to_on_anim_mtrl"
|
||||
android:fromId="@id/off"
|
||||
android:toId="@id/on" />
|
||||
android:toId="@id/on">
|
||||
<animation-list>
|
||||
<item
|
||||
android:drawable="@drawable/watch_switch_thumb_mtrl_14w"
|
||||
android:duration="30" />
|
||||
<item
|
||||
android:drawable="@drawable/watch_switch_thumb_mtrl_15w"
|
||||
android:duration="15" />
|
||||
<item
|
||||
android:drawable="@drawable/watch_switch_thumb_mtrl_16w"
|
||||
android:duration="15" />
|
||||
<item
|
||||
android:drawable="@drawable/watch_switch_thumb_mtrl_17w"
|
||||
android:duration="15" />
|
||||
<item
|
||||
android:drawable="@drawable/watch_switch_thumb_mtrl_18w"
|
||||
android:duration="75" />
|
||||
<item
|
||||
android:drawable="@drawable/watch_switch_thumb_mtrl_17w"
|
||||
android:duration="15" />
|
||||
<item
|
||||
android:drawable="@drawable/watch_switch_thumb_mtrl_16w"
|
||||
android:duration="15" />
|
||||
<item
|
||||
android:drawable="@drawable/watch_switch_thumb_mtrl_15w"
|
||||
android:duration="15" />
|
||||
<item
|
||||
android:drawable="@drawable/watch_switch_thumb_mtrl_14w"
|
||||
android:duration="30" />
|
||||
</animation-list>
|
||||
</transition>
|
||||
<transition
|
||||
android:drawable="@drawable/watch_switch_thumb_to_off_anim_mtrl"
|
||||
android:fromId="@id/on"
|
||||
android:toId="@id/off" />
|
||||
android:toId="@id/off">
|
||||
<animation-list>
|
||||
<item
|
||||
android:drawable="@drawable/watch_switch_thumb_mtrl_14w"
|
||||
android:duration="30" />
|
||||
<item
|
||||
android:drawable="@drawable/watch_switch_thumb_mtrl_15w"
|
||||
android:duration="15" />
|
||||
<item
|
||||
android:drawable="@drawable/watch_switch_thumb_mtrl_16w"
|
||||
android:duration="15" />
|
||||
<item
|
||||
android:drawable="@drawable/watch_switch_thumb_mtrl_17w"
|
||||
android:duration="15" />
|
||||
<item
|
||||
android:drawable="@drawable/watch_switch_thumb_mtrl_18w"
|
||||
android:duration="75" />
|
||||
<item
|
||||
android:drawable="@drawable/watch_switch_thumb_mtrl_17w"
|
||||
android:duration="15" />
|
||||
<item
|
||||
android:drawable="@drawable/watch_switch_thumb_mtrl_16w"
|
||||
android:duration="15" />
|
||||
<item
|
||||
android:drawable="@drawable/watch_switch_thumb_mtrl_15w"
|
||||
android:duration="15" />
|
||||
<item
|
||||
android:drawable="@drawable/watch_switch_thumb_mtrl_14w"
|
||||
android:duration="30" />
|
||||
</animation-list>
|
||||
</transition>
|
||||
</animated-selector>
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2016 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.
|
||||
-->
|
||||
|
||||
<animated-vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:drawable="@drawable/watch_switch_thumb_material">
|
||||
<target
|
||||
android:name="thumb_path"
|
||||
android:animation="@anim/watch_switch_thumb_to_off_animation" />
|
||||
</animated-vector>
|
||||
@@ -1,19 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2016 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.
|
||||
-->
|
||||
|
||||
<animated-vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:drawable="@drawable/watch_switch_thumb_material">
|
||||
<target
|
||||
android:name="thumb_path"
|
||||
android:animation="@anim/watch_switch_thumb_to_on_animation" />
|
||||
</animated-vector>
|
||||
@@ -1,23 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2016 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.
|
||||
-->
|
||||
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:gravity="center_vertical|center_horizontal">
|
||||
<shape android:shape="oval">
|
||||
<solid android:color="@android:color/white" />
|
||||
<size
|
||||
android:width="40dp"
|
||||
android:height="40dp" />
|
||||
</shape>
|
||||
</item>
|
||||
</layer-list>
|
||||
@@ -23,7 +23,8 @@
|
||||
android:layout_gravity="center"
|
||||
android:thumb="@drawable/watch_switch_thumb_material_anim"
|
||||
android:thumbTint="@color/watch_switch_thumb_color_material"
|
||||
android:track="@drawable/watch_switch_track_material"
|
||||
android:thumbTintMode="multiply"
|
||||
android:track="@drawable/watch_switch_track_mtrl"
|
||||
android:trackTint="@color/watch_switch_track_color_material"
|
||||
android:focusable="false"
|
||||
android:clickable="false"
|
||||
|
||||