From fe954cf9e47bb7f9360c0cb19fb356e85b25412d Mon Sep 17 00:00:00 2001 From: Nico60 Date: Sun, 8 Dec 2019 22:49:21 +0530 Subject: [PATCH] Cherish: [SQUASHED] Add animations to quick settings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add animations to quick settings tiles [1/2] - Add faster qs tile animation speeds (1/2) - Add interpolators to qs tiles animation [1/2] Signed-off-by: Hưng Phan --- res/values/cherish_arrays.xml | 53 +++++++++++++++++++++++++ res/values/cherish_strings.xml | 27 +++++++++++++ res/xml/cherish_settings_animations.xml | 29 ++++++++++++++ 3 files changed, 109 insertions(+) diff --git a/res/values/cherish_arrays.xml b/res/values/cherish_arrays.xml index 78295c3..eb14e8a 100644 --- a/res/values/cherish_arrays.xml +++ b/res/values/cherish_arrays.xml @@ -402,4 +402,57 @@ 1 2 + + + + @string/qs_tile_animation_style_off + @string/qs_tile_animation_style_flip + @string/qs_tile_animation_style_rotate + + + + 0 + 1 + 2 + + + + + @string/qs_tile_animation_duration_low + @string/qs_tile_animation_duration_default + @string/qs_tile_animation_duration_fast + @string/qs_tile_animation_duration_quite_fast + @string/qs_tile_animation_duration_super_fast + + + + 2500 + 2000 + 1500 + 1000 + 500 + + + + + @string/qs_tile_animation_interpolator_linearInterpolator + @string/qs_tile_animation_interpolator_accelerateInterpolator + @string/qs_tile_animation_interpolator_decelerateInterpolator + @string/qs_tile_animation_interpolator_accelerateDecelerateInterpolator + @string/qs_tile_animation_interpolator_bounceInterpolator + @string/qs_tile_animation_interpolator_overshootInterpolator + @string/qs_tile_animation_interpolator_anticipateInterpolator + @string/qs_tile_animation_interpolator_anticipateOvershootInterpolator + + + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + diff --git a/res/values/cherish_strings.xml b/res/values/cherish_strings.xml index 719fe96..60cdc34 100644 --- a/res/values/cherish_strings.xml +++ b/res/values/cherish_strings.xml @@ -612,4 +612,31 @@ AOSP (default) Bottom Top + + + QS Tiles + + + Animation style + Animation duration + Tiles animation interpolator + No animation + Flip + Rotate + Low + Default + Fast + Quite fast + Super fast + Linear + Accelerate + Decelerate + Accelerate decelerate + Bounce + Overshoot + Anticipate + Anticipate overshoot + %1$s + %1$s + %1$s diff --git a/res/xml/cherish_settings_animations.xml b/res/xml/cherish_settings_animations.xml index 9226217..34bb3bb 100644 --- a/res/xml/cherish_settings_animations.xml +++ b/res/xml/cherish_settings_animations.xml @@ -29,4 +29,33 @@ android:summary="%s" android:persistent="false" /> + + + + + + + + + +