From 3aff8b6ff6f9bf9ba279e87fa0927095030b4b77 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 | 25 ++++++++++++ res/xml/cherish_settings_animations.xml | 30 ++++++++++++++ 3 files changed, 108 insertions(+) diff --git a/res/values/cherish_arrays.xml b/res/values/cherish_arrays.xml index fa12b51..ebe8c6d 100644 --- a/res/values/cherish_arrays.xml +++ b/res/values/cherish_arrays.xml @@ -569,4 +569,57 @@ 2 3 + + + + @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 4b60284..469d3e5 100644 --- a/res/values/cherish_strings.xml +++ b/res/values/cherish_strings.xml @@ -623,4 +623,29 @@ CRT Scale Screen off animation + + + 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 178cba7..dde343a 100644 --- a/res/xml/cherish_settings_animations.xml +++ b/res/xml/cherish_settings_animations.xml @@ -122,4 +122,34 @@ android:entryValues="@array/screen_off_animation_values" android:persistent="false" android:defaultValue="0" /> + + + + + + + + + +