diff options
Diffstat (limited to 'java/com/android/incallui/contactgrid/res/drawable')
3 files changed, 259 insertions, 0 deletions
diff --git a/java/com/android/incallui/contactgrid/res/drawable/asd_hd_icon.xml b/java/com/android/incallui/contactgrid/res/drawable/asd_hd_icon.xml new file mode 100644 index 000000000..415930e9a --- /dev/null +++ b/java/com/android/incallui/contactgrid/res/drawable/asd_hd_icon.xml @@ -0,0 +1,108 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2017 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-selector xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:aapt="http://schemas.android.com/aapt"> + <item + android:id="@+id/hd_attempting" + android:drawable="@drawable/avd_hd_attempting" + android:state_activated="false"/> + <item + android:id="@+id/hd_enabled" + android:drawable="@drawable/quantum_ic_hd_vd_theme_24" + android:state_activated="true"/> + + <transition + android:fromId="@id/hd_attempting" + android:toId="@id/hd_enabled"> + <animated-vector android:drawable="@drawable/vd_hd_attempting"> + <target android:name="hdMask"> + <aapt:attr name="android:animation"> + <objectAnimator + android:duration="150" + android:propertyName="pathData" + android:startOffset="45" + android:valueFrom="M12, 12 m 0, -9 a 9,9 0 1,1 0,18 a 9,9 0 1,1 0,-18" + android:valueTo="M12, 12 m 0, -18 a 18,18 0 1,1 0,36 a 18,18 0 1,1 0,-36" + android:valueType="pathType"/> + </aapt:attr> + </target> + + <target android:name="hdRoot"> + <aapt:attr name="android:animation"> + <set android:ordering="sequentially"> + <set> + <objectAnimator + android:duration="45" + android:interpolator="@anim/hd_scale_interpolator" + android:propertyName="scaleX" + android:valueFrom="1" + android:valueTo="0.9"/> + <objectAnimator + android:duration="45" + android:interpolator="@anim/hd_scale_interpolator" + android:propertyName="scaleY" + android:valueFrom="1" + android:valueTo="0.9"/> + </set> + <set> + <objectAnimator + android:duration="120" + android:interpolator="@anim/hd_scale_interpolator2" + android:propertyName="scaleX" + android:valueFrom="0.9" + android:valueTo="1.2"/> + <objectAnimator + android:duration="120" + android:interpolator="@anim/hd_scale_interpolator2" + android:propertyName="scaleY" + android:valueFrom="0.9" + android:valueTo="1.2"/> + </set> + <set> + <objectAnimator + android:duration="120" + android:interpolator="@anim/hd_scale_interpolator2" + android:propertyName="scaleX" + android:valueFrom="1.2" + android:valueTo="1"/> + <objectAnimator + android:duration="120" + android:interpolator="@anim/hd_scale_interpolator2" + android:propertyName="scaleY" + android:valueFrom="1.2" + android:valueTo="1"/> + </set> + </set> + </aapt:attr> + </target> + + <target android:name="root"> + <aapt:attr name="android:animation"> + <objectAnimator + android:duration="150" + android:interpolator="@android:interpolator/fast_out_slow_in" + android:propertyName="alpha" + android:startOffset="45" + android:valueFrom="0.5" + android:valueTo="1"/> + </aapt:attr> + </target> + </animated-vector> + </transition> + +</animated-selector>
\ No newline at end of file diff --git a/java/com/android/incallui/contactgrid/res/drawable/avd_hd_attempting.xml b/java/com/android/incallui/contactgrid/res/drawable/avd_hd_attempting.xml new file mode 100644 index 000000000..a0ac21399 --- /dev/null +++ b/java/com/android/incallui/contactgrid/res/drawable/avd_hd_attempting.xml @@ -0,0 +1,95 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2017 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" + xmlns:aapt="http://schemas.android.com/aapt" + android:drawable="@drawable/vd_hd_attempting"> + <target android:name="progressBar"> + <aapt:attr name="android:animation"> + <set> + <objectAnimator + android:duration="1333" + android:interpolator="@anim/trim_start_interpolator" + android:propertyName="trimPathStart" + android:repeatCount="-1" + android:valueFrom="0" + android:valueTo="0.75" + android:valueType="floatType"/> + <objectAnimator + android:duration="1333" + android:interpolator="@anim/trim_end_interpolator" + android:propertyName="trimPathEnd" + android:repeatCount="-1" + android:valueFrom="0" + android:valueTo="0.75" + android:valueType="floatType"/> + <objectAnimator + android:duration="1333" + android:interpolator="@android:anim/linear_interpolator" + android:propertyName="trimPathOffset" + android:repeatCount="-1" + android:valueFrom="0" + android:valueTo="0.25" + android:valueType="floatType"/> + </set> + </aapt:attr> + </target> + + <target android:name="progressRoot"> + <aapt:attr name="android:animation"> + <objectAnimator + android:duration="4444" + android:interpolator="@android:anim/linear_interpolator" + android:propertyName="rotation" + android:repeatCount="-1" + android:valueFrom="0" + android:valueTo="720" + android:valueType="floatType"/> + </aapt:attr> + </target> + + <target android:name="hdRoot"> + <aapt:attr name="android:animation"> + <set> + <objectAnimator + android:duration="150" + android:interpolator="@android:interpolator/linear_out_slow_in" + android:propertyName="scaleX" + android:valueFrom="0" + android:valueTo="1"/> + <objectAnimator + android:duration="150" + android:interpolator="@android:interpolator/linear_out_slow_in" + android:propertyName="scaleY" + android:valueFrom="0" + android:valueTo="1"/> + </set> + </aapt:attr> + </target> + + <target android:name="root"> + <aapt:attr name="android:animation"> + <objectAnimator + android:duration="150" + android:interpolator="@android:interpolator/linear" + android:propertyName="alpha" + android:valueFrom="0" + android:valueTo="0.5"/> + </aapt:attr> + </target> + +</animated-vector>
\ No newline at end of file diff --git a/java/com/android/incallui/contactgrid/res/drawable/vd_hd_attempting.xml b/java/com/android/incallui/contactgrid/res/drawable/vd_hd_attempting.xml new file mode 100644 index 000000000..3d9a5e439 --- /dev/null +++ b/java/com/android/incallui/contactgrid/res/drawable/vd_hd_attempting.xml @@ -0,0 +1,56 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2017 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:height="24dp" + android:name="root" + android:tint="?attr/colorControlNormal" + android:viewportHeight="24" + android:viewportWidth="24" + android:width="24dp"> + + <group + android:name="progressRoot" + android:translateX="12.0" + android:translateY="12.0"> + <path + android:fillColor="#00000000" + android:name="progressBar" + android:pathData="M0, 0 m 0, -11 a 11,11 0 1,1 0,22 a 11,11 0 1,1 0,-22" + android:strokeColor="@android:color/white" + android:strokeLineCap="square" + android:strokeLineJoin="miter" + android:strokeWidth="2" + android:trimPathEnd="0" + android:trimPathOffset="0" + android:trimPathStart="0"/> + </group> + <group + android:name="hdRoot" + android:pivotX="12" + android:pivotY="12"> + <clip-path + android:name="hdMask" + android:pathData="M12, 12 m 0, -9 a 9,9 0 1,1 0,18 a 9,9 0 1,1 0,-18"/> + <path + android:fillColor="@android:color/white" + android:name="hd" + android:pathData="M19,3L5,3c-1.11,0 -2,0.9 -2,2v14c0,1.1 0.89,2 2,2h14c1.1,0 2,-0.9 2,-2L21,5c0,-1.1 -0.9,-2 -2,-2zM11,15L9.5,15v-2h-2v2L6,15L6,9h1.5v2.5h2L9.5,9L11,9v6zM13,9h4c0.55,0 1,0.45 1,1v4c0,0.55 -0.45,1 -1,1h-4L13,9zM14.5,13.5h2v-3h-2v3z"/> + </group> + +</vector> |