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 <set 50 android:ordering="sequentially" > 51 <objectAnimator 52 android:duration="183" 53 android:propertyName="scaleX" 54 android:valueFrom="1.0" 55 android:valueTo="0.9" 56 android:valueType="floatType" 57 android:interpolator="@android:interpolator/accelerate_decelerate" /> 58 <objectAnimator 59 android:duration="16" 60 android:propertyName="scaleX" 61 android:valueFrom="0.9" 62 android:valueTo="0.5" 63 android:valueType="floatType" 64 android:interpolator="@android:interpolator/accelerate_decelerate" /> 65 <objectAnimator 66 android:duration="300" 67 android:propertyName="scaleX" 68 android:valueFrom="0.5" 69 android:valueTo="1.0" 70 android:valueType="floatType" 71 android:interpolator="@android:interpolator/accelerate_decelerate" /> 72 </set> 73 <set 74 android:ordering="sequentially" > 75 <objectAnimator 76 android:duration="183" 77 android:propertyName="scaleY" 78 android:valueFrom="1.0" 79 android:valueTo="0.9" 80 android:valueType="floatType" 81 android:interpolator="@android:interpolator/accelerate_decelerate" /> 82 <objectAnimator 83 android:duration="16" 84 android:propertyName="scaleY" 85 android:valueFrom="0.9" 86 android:valueTo="0.5" 87 android:valueType="floatType" 88 android:interpolator="@android:interpolator/accelerate_decelerate" /> 89 <objectAnimator 90 android:duration="300" 91 android:propertyName="scaleY" 92 android:valueFrom="0.5" 93 android:valueTo="1.0" 94 android:valueType="floatType" 95 android:interpolator="@android:interpolator/accelerate_decelerate" /> 96 </set> 97 </set> 98 </aapt:attr> 99 </target> 100 101 <target android:name="ring_outer_path"> 102 <aapt:attr name="android:animation"> 103 <set> 104 <set 105 android:ordering="sequentially"> 106 <objectAnimator 107 android:duration="183" 108 android:propertyName="strokeWidth" 109 android:valueFrom="2.0" 110 android:valueTo="2.0" 111 android:valueType="floatType" 112 android:interpolator="@android:interpolator/accelerate_decelerate"/> 113 <objectAnimator 114 android:duration="16" 115 android:propertyName="strokeWidth" 116 android:valueFrom="2.0" 117 android:valueTo="18.0" 118 android:valueType="floatType" 119 android:interpolator="@android:interpolator/accelerate_decelerate"/> 120 <objectAnimator 121 android:duration="300" 122 android:propertyName="strokeWidth" 123 android:valueFrom="18.0" 124 android:valueTo="2.0" 125 android:valueType="floatType" 126 android:interpolator="@android:interpolator/accelerate_decelerate"/> 127 </set> 128 129 </set> 130 </aapt:attr> 131 </target> 132 <target 133 android:name="dot_group"> 134 <aapt:attr name="android:animation"> 135 <set> 136 <set 137 android:ordering="sequentially"> 138 <objectAnimator 139 android:duration="183" 140 android:propertyName="scaleX" 141 android:valueFrom="1.0" 142 android:valueTo="1.4" 143 android:valueType="floatType" 144 android:interpolator="@android:interpolator/accelerate_decelerate"/> 145 <objectAnimator 146 android:duration="16" 147 android:propertyName="scaleX" 148 android:valueFrom="1.4" 149 android:valueTo="0.0" 150 android:valueType="floatType" 151 android:interpolator="@android:interpolator/accelerate_decelerate"/> 152 <objectAnimator 153 android:duration="300" 154 android:propertyName="scaleX" 155 android:valueFrom="0.0" 156 android:valueTo="0.0" 157 android:valueType="floatType" 158 android:interpolator="@android:interpolator/accelerate_decelerate"/> 159 </set> 160 <set 161 android:ordering="sequentially"> 162 <objectAnimator 163 android:duration="183" 164 android:propertyName="scaleY" 165 android:valueFrom="1.0" 166 android:valueTo="1.4" 167 android:valueType="floatType" 168 android:interpolator="@android:interpolator/accelerate_decelerate"/> 169 <objectAnimator 170 android:duration="16" 171 android:propertyName="scaleY" 172 android:valueFrom="1.4" 173 android:valueTo="0.0" 174 android:valueType="floatType" 175 android:interpolator="@android:interpolator/accelerate_decelerate"/> 176 <objectAnimator 177 android:duration="300" 178 android:propertyName="scaleY" 179 android:valueFrom="0.0" 180 android:valueTo="0.0" 181 android:valueType="floatType" 182 android:interpolator="@android:interpolator/accelerate_decelerate"/> 183 </set> 184 </set> 185 </aapt:attr> 186 </target> 187</animated-vector>