Cherish: AOKP custom system animations [2/2]
This commit is contained in:
9
res/drawable/ic_settings_animations.xml
Normal file
9
res/drawable/ic_settings_animations.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:height="24dp"
|
||||
android:width="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24"
|
||||
android:tint="?android:attr/colorControlNormal">
|
||||
|
||||
<path android:fillColor="#000000" android:pathData="M4,2A2,2 0 0,0 2,4V14H4V4H14V2H4M8,6A2,2 0 0,0 6,8V18H8V8H18V6H8M20,12V20H12V12H20M20,10H12A2,2 0 0,0 10,12V20A2,2 0 0,0 12,22H20A2,2 0 0,0 22,20V12A2,2 0 0,0 20,10M14,13V19L18,16L14,13Z" />
|
||||
</vector>
|
||||
@@ -1,7 +0,0 @@
|
||||
<vector android:height="24dp" android:viewportHeight="2400.0"
|
||||
android:viewportWidth="2400.0" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="?android:attr/colorControlNormal"
|
||||
android:pathData="M940,2365c-106,-24 -159,-43 -275,-100 -289,-143 -498,-382 -604,-691 -40,-118 -55,-257 -48,-449 7,-205 50,-366 135,-504 18,-28 32,-54 32,-57 0,-16 128,-170 196,-234 195,-186 424,-291 682,-312 396,-33 692,68 960,326 263,254 388,596 354,970 -44,488 -381,890 -872,1038 -88,27 -460,35 -560,13zM1425,2180c359,-94 620,-345 731,-705 26,-84 28,-102 29,-270 0,-156 -3,-191 -23,-265 -84,-318 -319,-578 -622,-690 -373,-137 -791,-44 -1068,239 -306,313 -374,807 -165,1191 160,292 429,474 778,524 67,10 262,-4 340,-24z" android:strokeColor="#00000000"/>
|
||||
<path android:fillColor="?android:attr/colorControlNormal"
|
||||
android:pathData="M680,1953c-27,-10 -71,-57 -86,-92 -12,-28 -14,-141 -14,-656 0,-683 -1,-667 60,-719 54,-45 80,-47 578,-44 461,3 467,3 502,25 20,12 46,40 58,61l22,40 0,636c0,696 3,661 -60,721l-31,30 -507,2c-279,1 -514,-1 -522,-4zM1628,1053l2,-443 -440,0 -440,0 0,438c0,241 3,442 7,445 3,4 200,6 437,5l431,-3 3,-442z" android:strokeColor="#00000000"/>
|
||||
</vector>
|
||||
@@ -18,7 +18,7 @@
|
||||
<string name="gestures_title">Cử chỉ</string>
|
||||
<string name="lockscreen_title">Màn hình khoá</string>
|
||||
<string name="misc_title">Khác</string>
|
||||
<string name="navbar_title">Thanh điều hướng</string>
|
||||
<string name="animations_title">Hiệu ứng</string>
|
||||
<string name="powermenu_title">Trình đơn nguồn</string>
|
||||
<string name="quicksettings_title">Cài đặt nhanh</string>
|
||||
<string name="recents_title">Ứng dụng gần đây</string>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<string name="gestures_title">Gestures</string>
|
||||
<string name="lockscreen_title">Lock screen</string>
|
||||
<string name="misc_title">Miscellaneous</string>
|
||||
<string name="navbar_title">Navigation bar</string>
|
||||
<string name="animations_title">Animations</string>
|
||||
<string name="powermenu_title">Power menu</string>
|
||||
<string name="theme_title">Themes</string>
|
||||
<string name="quicksettings_title">Quick Settings</string>
|
||||
@@ -399,5 +399,23 @@
|
||||
<!-- R Notification headers -->
|
||||
<string name="notification_headers_title">Show notification headers</string>
|
||||
<string name="notification_headers_summary">Whether to show R style notification headers (Requires a SystemUI restart)</string>
|
||||
|
||||
<!-- AOKP custom system animations -->
|
||||
<string name="system_animation_title">System</string>
|
||||
<string name="activity_open_title">Activity open animation</string>
|
||||
<string name="activity_close_title">Activity close animation</string>
|
||||
<string name="task_open_title">Task open animation</string>
|
||||
<string name="task_open_behind_title">Task open behind animation</string>
|
||||
<string name="task_close_title">Task close animation</string>
|
||||
<string name="task_move_to_front_title">Move to front animation</string>
|
||||
<string name="task_move_to_back_title">Move to back animation</string>
|
||||
<string name="wallpaper_open_title">Wallpaper open animation</string>
|
||||
<string name="wallpaper_close_title">Wallpaper close animation</string>
|
||||
<string name="wallpaper_intra_open_title">Wallpaper intra open animation</string>
|
||||
<string name="wallpaper_intra_close_title">Wallpaper intra close animation</string>
|
||||
<string name="animation_duration_title">Animation duration</string>
|
||||
<string name="title_animation_no_override">Prevent app overrides</string>
|
||||
<string name="summary_animation_no_override">Prevent apps from overriding transitions</string>
|
||||
<string name="animation_duration_default">Default</string>
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -44,6 +44,13 @@
|
||||
android:title="@string/button_title"
|
||||
android:icon="@drawable/ic_settings_buttons"
|
||||
android:fragment="com.android.settings.custom.buttons.ButtonSettings"/>
|
||||
|
||||
<!-- Animations -->
|
||||
<Preference
|
||||
android:key="animations_category"
|
||||
android:title="@string/animations_title"
|
||||
android:icon="@drawable/ic_settings_animations"
|
||||
android:fragment="com.cherish.settings.fragments.AnimationsSettings"/>
|
||||
|
||||
<!-- Lock Screen -->
|
||||
<Preference
|
||||
|
||||
81
res/xml/cherish_settings_animations.xml
Normal file
81
res/xml/cherish_settings_animations.xml
Normal file
@@ -0,0 +1,81 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2012-2014 The TeamEos 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.
|
||||
-->
|
||||
|
||||
<PreferenceScreen
|
||||
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:title="@string/system_animation_title">
|
||||
|
||||
<com.cherish.settings.preferences.CustomSeekBarPreference
|
||||
android:key="animation_controls_duration"
|
||||
android:title="@string/animation_duration_title"
|
||||
android:max="400"
|
||||
settings:min="0"
|
||||
settings:interval="10"
|
||||
android:defaultValue="0"
|
||||
android:persistent="false" />
|
||||
|
||||
<ListPreference
|
||||
android:key="activity_open"
|
||||
android:title="@string/activity_open_title" />
|
||||
|
||||
<ListPreference
|
||||
android:key="activity_close"
|
||||
android:title="@string/activity_close_title" />
|
||||
|
||||
<ListPreference
|
||||
android:key="task_open"
|
||||
android:title="@string/task_open_title" />
|
||||
|
||||
<ListPreference
|
||||
android:key="task_open_behind"
|
||||
android:title="@string/task_open_behind_title" />
|
||||
|
||||
<ListPreference
|
||||
android:key="task_close"
|
||||
android:title="@string/task_close_title" />
|
||||
|
||||
<ListPreference
|
||||
android:key="task_move_to_front"
|
||||
android:title="@string/task_move_to_front_title" />
|
||||
|
||||
<ListPreference
|
||||
android:key="task_move_to_back"
|
||||
android:title="@string/task_move_to_back_title" />
|
||||
|
||||
<ListPreference
|
||||
android:key="wallpaper_open"
|
||||
android:title="@string/wallpaper_open_title" />
|
||||
|
||||
<ListPreference
|
||||
android:key="wallpaper_close"
|
||||
android:title="@string/wallpaper_close_title" />
|
||||
|
||||
<ListPreference
|
||||
android:key="wallpaper_intra_open"
|
||||
android:title="@string/wallpaper_intra_open_title" />
|
||||
|
||||
<ListPreference
|
||||
android:key="wallpaper_intra_close"
|
||||
android:title="@string/wallpaper_intra_close_title" />
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
</PreferenceScreen>
|
||||
@@ -1,23 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2012-2014 The TeamEos 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.
|
||||
-->
|
||||
|
||||
<PreferenceScreen
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:title="@string/navbar_title"
|
||||
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings" >
|
||||
|
||||
</PreferenceScreen>
|
||||
Reference in New Issue
Block a user