Teng-Hui Zhu | 5339428 | 2016-03-28 16:34:53 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2016 The Android Open Source Project |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | --> |
| 16 | <animated-vector xmlns:aapt="http://schemas.android.com/aapt" |
| 17 | xmlns:android="http://schemas.android.com/apk/res/android"> |
| 18 | <aapt:attr name="android:drawable"> |
| 19 | <vector |
| 20 | android:width="32dp" |
| 21 | android:viewportWidth="32" |
| 22 | android:height="32dp" |
| 23 | android:viewportHeight="32"> |
| 24 | <group |
| 25 | android:name="btn_radio_to_off_mtrl_0" |
| 26 | android:translateX="16" |
| 27 | android:translateY="16"> |
| 28 | <group |
| 29 | android:name="ring_outer"> |
| 30 | <path |
| 31 | android:name="ring_outer_path" |
| 32 | android:strokeColor="#FF000000" |
| 33 | android:strokeWidth="2" |
| 34 | 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"/> |
| 35 | </group> |
| 36 | <group |
| 37 | android:name="dot_group"> |
| 38 | <path |
| 39 | android:name="dot_path" |
| 40 | 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" |
| 41 | android:fillColor="#FF000000"/> |
| 42 | </group> |
| 43 | </group> |
| 44 | </vector> |
| 45 | </aapt:attr> |
| 46 | <target android:name="ring_outer"> |
| 47 | <aapt:attr name="android:animation"> |
| 48 | <set |
| 49 | xmlns:android="http://schemas.android.com/apk/res/android" > |
| 50 | <set |
| 51 | android:ordering="sequentially" > |
| 52 | <objectAnimator |
| 53 | android:duration="183" |
| 54 | android:propertyName="scaleX" |
| 55 | android:valueFrom="1.0" |
| 56 | android:valueTo="0.9" |
| 57 | android:valueType="floatType" |
| 58 | android:interpolator="@android:interpolator/fast_out_slow_in" /> |
| 59 | <objectAnimator |
| 60 | android:duration="16" |
| 61 | android:propertyName="scaleX" |
| 62 | android:valueFrom="0.9" |
| 63 | android:valueTo="0.5" |
| 64 | android:valueType="floatType" |
| 65 | android:interpolator="@interpolator/btn_radio_to_off_mtrl_animation_interpolator_0" /> |
| 66 | <objectAnimator |
| 67 | android:duration="300" |
| 68 | android:propertyName="scaleX" |
| 69 | android:valueFrom="0.5" |
| 70 | android:valueTo="1.0" |
| 71 | android:valueType="floatType" |
| 72 | android:interpolator="@interpolator/btn_radio_to_off_mtrl_animation_interpolator_0" /> |
| 73 | </set> |
| 74 | <set |
| 75 | android:ordering="sequentially" > |
| 76 | <objectAnimator |
| 77 | android:duration="183" |
| 78 | android:propertyName="scaleY" |
| 79 | android:valueFrom="1.0" |
| 80 | android:valueTo="0.9" |
| 81 | android:valueType="floatType" |
| 82 | android:interpolator="@android:interpolator/fast_out_slow_in" /> |
| 83 | <objectAnimator |
| 84 | android:duration="16" |
| 85 | android:propertyName="scaleY" |
| 86 | android:valueFrom="0.9" |
| 87 | android:valueTo="0.5" |
| 88 | android:valueType="floatType" |
| 89 | android:interpolator="@interpolator/btn_radio_to_off_mtrl_animation_interpolator_0" /> |
| 90 | <objectAnimator |
| 91 | android:duration="300" |
| 92 | android:propertyName="scaleY" |
| 93 | android:valueFrom="0.5" |
| 94 | android:valueTo="1.0" |
| 95 | android:valueType="floatType" |
| 96 | android:interpolator="@interpolator/btn_radio_to_off_mtrl_animation_interpolator_0" /> |
| 97 | </set> |
| 98 | </set> |
| 99 | </aapt:attr> |
| 100 | </target> |
| 101 | |
| 102 | <target android:name="ring_outer_path"> |
| 103 | <aapt:attr name="android:animation"> |
| 104 | <set |
| 105 | xmlns:android="http://schemas.android.com/apk/res/android"> |
| 106 | <set |
| 107 | android:ordering="sequentially"> |
| 108 | <objectAnimator |
| 109 | android:duration="183" |
| 110 | android:propertyName="strokeWidth" |
| 111 | android:valueFrom="2.0" |
| 112 | android:valueTo="2.0" |
| 113 | android:valueType="floatType" |
| 114 | android:interpolator="@android:interpolator/fast_out_slow_in"/> |
| 115 | <objectAnimator |
| 116 | android:duration="16" |
| 117 | android:propertyName="strokeWidth" |
| 118 | android:valueFrom="2.0" |
| 119 | android:valueTo="18.0" |
| 120 | android:valueType="floatType" |
| 121 | android:interpolator="@android:interpolator/fast_out_slow_in"/> |
| 122 | <objectAnimator |
| 123 | android:duration="300" |
| 124 | android:propertyName="strokeWidth" |
| 125 | android:valueFrom="18.0" |
| 126 | android:valueTo="2.0" |
| 127 | android:valueType="floatType" |
| 128 | android:interpolator="@android:interpolator/fast_out_slow_in"/> |
| 129 | </set> |
| 130 | |
| 131 | </set> |
| 132 | </aapt:attr> |
| 133 | </target> |
| 134 | <target |
| 135 | android:name="dot_group"> |
| 136 | <aapt:attr name="android:animation"> |
| 137 | <set |
| 138 | xmlns:android="http://schemas.android.com/apk/res/android"> |
| 139 | <set |
| 140 | android:ordering="sequentially"> |
| 141 | <objectAnimator |
| 142 | android:duration="183" |
| 143 | android:propertyName="scaleX" |
| 144 | android:valueFrom="1.0" |
| 145 | android:valueTo="1.4" |
| 146 | android:valueType="floatType" |
| 147 | android:interpolator="@android:interpolator/fast_out_slow_in"/> |
| 148 | <objectAnimator |
| 149 | android:duration="16" |
| 150 | android:propertyName="scaleX" |
| 151 | android:valueFrom="1.4" |
| 152 | android:valueTo="0.0" |
| 153 | android:valueType="floatType" |
| 154 | android:interpolator="@android:interpolator/fast_out_slow_in"/> |
| 155 | <objectAnimator |
| 156 | android:duration="300" |
| 157 | android:propertyName="scaleX" |
| 158 | android:valueFrom="0.0" |
| 159 | android:valueTo="0.0" |
| 160 | android:valueType="floatType" |
| 161 | android:interpolator="@android:interpolator/fast_out_slow_in"/> |
| 162 | </set> |
| 163 | <set |
| 164 | android:ordering="sequentially"> |
| 165 | <objectAnimator |
| 166 | android:duration="183" |
| 167 | android:propertyName="scaleY" |
| 168 | android:valueFrom="1.0" |
| 169 | android:valueTo="1.4" |
| 170 | android:valueType="floatType" |
| 171 | android:interpolator="@android:interpolator/fast_out_slow_in"/> |
| 172 | <objectAnimator |
| 173 | android:duration="16" |
| 174 | android:propertyName="scaleY" |
| 175 | android:valueFrom="1.4" |
| 176 | android:valueTo="0.0" |
| 177 | android:valueType="floatType" |
| 178 | android:interpolator="@android:interpolator/fast_out_slow_in"/> |
| 179 | <objectAnimator |
| 180 | android:duration="300" |
| 181 | android:propertyName="scaleY" |
| 182 | android:valueFrom="0.0" |
| 183 | android:valueTo="0.0" |
| 184 | android:valueType="floatType" |
| 185 | android:interpolator="@android:interpolator/fast_out_slow_in"/> |
| 186 | </set> |
| 187 | </set> |
| 188 | </aapt:attr> |
| 189 | </target> |
| 190 | </animated-vector> |