Cherish: Add animations to quick settings tiles [2/2]

Change-Id: I2e4009027d35a519a8e8b3b17e41b4dcd829c307
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
Nico60
2016-05-16 21:53:07 +02:00
committed by Hưng Phan
parent 05b054ac79
commit 6bd11a0e8e
4 changed files with 116 additions and 3 deletions

View File

@@ -281,5 +281,31 @@
<item>4</item>
<item>5</item>
</string-array>
<!-- Tiles animation style -->
<string-array name="qs_tile_animation_style_entries" translatable="false">
<item>@string/qs_tile_animation_style_off</item>
<item>@string/qs_tile_animation_style_flip</item>
<item>@string/qs_tile_animation_style_rotate</item>
</string-array>
<string-array name="qs_tile_animation_style_values" translatable="false">
<item>0</item>
<item>1</item>
<item>2</item>
</string-array>
<!-- Tiles animation duration -->
<string-array name="qs_tile_animation_duration_entries" translatable="false">
<item>@string/qs_tile_animation_duration_low</item>
<item>@string/qs_tile_animation_duration_default</item>
<item>@string/qs_tile_animation_duration_fast</item>
</string-array>
<string-array name="qs_tile_animation_duration_values" translatable="false">
<item>2500</item>
<item>2000</item>
<item>1500</item>
</string-array>
</resources>

View File

@@ -480,5 +480,17 @@
<!-- Call strength icons in QS -->
<string name="show_qs_call_strength_icon_title">Show call strength icon(s)</string>
<string name="show_qs_call_strength_icon_summary">Show call strength icons in QuickSettings panel when available</string>
<!-- Tiles animation style -->
<string name="qs_tile_animation_title">Animations</string>
<string name="qs_tile_animation_style_title">Animation style</string>
<string name="qs_tile_animation_duration_title">Animation duration</string>
<string name="qs_tile_animation_style_off">no animation</string>
<string name="qs_tile_animation_style_flip">flip</string>
<string name="qs_tile_animation_style_rotate">rotate</string>
<string name="qs_tile_animation_duration_low">low</string>
<string name="qs_tile_animation_duration_default">default</string>
<string name="qs_tile_animation_duration_fast">fast</string>
<string name="qs_set_animation_style">Animation is set to %1$s</string>
<string name="qs_set_animation_duration">Animation duration is set to %1$s</string>
</resources>

View File

@@ -19,5 +19,24 @@
xmlns:android="http://schemas.android.com/apk/res/android"
android:title="@string/animations_title"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings" >
<PreferenceCategory
android:key="quick_settings_animations"
android:title="@string/qs_tile_animation_title"/>
<ListPreference
android:key="qs_tile_animation_style"
android:title="@string/qs_tile_animation_style_title"
android:entries="@array/qs_tile_animation_style_entries"
android:entryValues="@array/qs_tile_animation_style_values"
android:persistent="false" />
<ListPreference
android:key="qs_tile_animation_duration"
android:title="@string/qs_tile_animation_duration_title"
android:entries="@array/qs_tile_animation_duration_entries"
android:entryValues="@array/qs_tile_animation_duration_values"
android:persistent="false" />
</PreferenceCategory>
</PreferenceScreen>