diff options
Diffstat (limited to 'res')
-rw-r--r-- | res/drawable/ic_settings_24dp.xml | 25 | ||||
-rw-r--r-- | res/layout/apps_filter_spinner.xml | 41 | ||||
-rw-r--r-- | res/layout/filter_spinner_item.xml | 27 | ||||
-rw-r--r-- | res/layout/manage_applications_content.xml | 43 | ||||
-rw-r--r-- | res/menu/manage_apps.xml | 23 | ||||
-rw-r--r-- | res/values/strings.xml | 29 | ||||
-rw-r--r-- | res/xml/advanced_apps.xml | 38 |
7 files changed, 179 insertions, 47 deletions
diff --git a/res/drawable/ic_settings_24dp.xml b/res/drawable/ic_settings_24dp.xml new file mode 100644 index 0000000..545bc2d --- /dev/null +++ b/res/drawable/ic_settings_24dp.xml @@ -0,0 +1,25 @@ +<!-- + Copyright (C) 2015 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:width="24dp" + android:height="24dp" + android:viewportWidth="24.0" + android:viewportHeight="24.0"> + <path + android:pathData="M19.4,13.0c0.0,-0.3 0.1,-0.6 0.1,-1.0s0.0,-0.7 -0.1,-1.0l2.1,-1.7c0.2,-0.2 0.2,-0.4 0.1,-0.6l-2.0,-3.5C19.5,5.1 19.3,5.0 19.0,5.1l-2.5,1.0c-0.5,-0.4 -1.1,-0.7 -1.7,-1.0l-0.4,-2.6C14.5,2.2 14.2,2.0 14.0,2.0l-4.0,0.0C9.8,2.0 9.5,2.2 9.5,2.4L9.1,5.1C8.5,5.3 8.0,5.7 7.4,6.1L5.0,5.1C4.7,5.0 4.5,5.1 4.3,5.3l-2.0,3.5C2.2,8.9 2.3,9.2 2.5,9.4L4.6,11.0c0.0,0.3 -0.1,0.6 -0.1,1.0s0.0,0.7 0.1,1.0l-2.1,1.7c-0.2,0.2 -0.2,0.4 -0.1,0.6l2.0,3.5C4.5,18.9 4.7,19.0 5.0,18.9l2.5,-1.0c0.5,0.4 1.1,0.7 1.7,1.0l0.4,2.6c0.0,0.2 0.2,0.4 0.5,0.4l4.0,0.0c0.2,0.0 0.5,-0.2 0.5,-0.4l0.4,-2.6c0.6,-0.3 1.2,-0.6 1.7,-1.0l2.5,1.0c0.2,0.1 0.5,0.0 0.6,-0.2l2.0,-3.5c0.1,-0.2 0.1,-0.5 -0.1,-0.6L19.4,13.0zM12.0,15.5c-1.9,0.0 -3.5,-1.6 -3.5,-3.5s1.6,-3.5 3.5,-3.5s3.5,1.6 3.5,3.5S13.9,15.5 12.0,15.5z" + android:fillColor="#ffffffff" /> +</vector> diff --git a/res/layout/apps_filter_spinner.xml b/res/layout/apps_filter_spinner.xml new file mode 100644 index 0000000..f72d7ee --- /dev/null +++ b/res/layout/apps_filter_spinner.xml @@ -0,0 +1,41 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2015 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. +--> + +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="?android:attr/actionBarSize" + android:background="@drawable/switchbar_background" + android:gravity="center_vertical" + android:theme="?attr/switchBarTheme" > + + <Spinner + android:id="@+id/filter_spinner" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:layout_marginStart="@dimen/switchbar_subsettings_margin_start" + android:layout_alignWithParentIfMissing="true" + android:layout_centerVertical="true" + android:textAlignment="viewStart" /> + + <View + android:id="@+id/row_divider" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="?android:attr/listDivider" /> + +</RelativeLayout> + diff --git a/res/layout/filter_spinner_item.xml b/res/layout/filter_spinner_item.xml new file mode 100644 index 0000000..e83dd80 --- /dev/null +++ b/res/layout/filter_spinner_item.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2015 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. +--> + +<TextView xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@android:id/text1" + style="?android:attr/spinnerItemStyle" + android:singleLine="true" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:ellipsize="marquee" + android:textAppearance="@style/TextAppearance.Switch" + android:textColor="@android:color/white" + android:textAlignment="inherit"/> diff --git a/res/layout/manage_applications_content.xml b/res/layout/manage_applications_content.xml deleted file mode 100644 index 364a002..0000000 --- a/res/layout/manage_applications_content.xml +++ /dev/null @@ -1,43 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- -/* -** -** Copyright 2012, 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. -*/ ---> - -<LinearLayout - xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:orientation="vertical" - android:background="@drawable/default_preference_background"> - - <android.support.v4.view.ViewPager - android:id="@+id/pager" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:layout_weight="1"> - <android.support.v4.view.PagerTabStrip - android:id="@+id/tabs" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_gravity="top" - android:textAppearance="@style/TextAppearance.PagerTabs" - android:padding="0dp"> - </android.support.v4.view.PagerTabStrip> - </android.support.v4.view.ViewPager> - -</LinearLayout> diff --git a/res/menu/manage_apps.xml b/res/menu/manage_apps.xml new file mode 100644 index 0000000..577e981 --- /dev/null +++ b/res/menu/manage_apps.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2015 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. +--> + +<menu xmlns:android="http://schemas.android.com/apk/res/android"> + <item + android:id="@+id/advanced" + android:title="@string/advanced_apps" + android:icon="@drawable/ic_settings_24dp" + android:showAsAction="collapseActionView|ifRoom" /> +</menu> diff --git a/res/values/strings.xml b/res/values/strings.xml index c202a89..be27f83 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -5626,6 +5626,8 @@ <string name="keywords_accounts">account</string> <string name="keywords_users">restriction restrict restricted</string> <string name="keywords_keyboard_and_ime">text correction correct sound vibrate auto language gesture suggest suggestion theme offensive word type emoji international</string> + <string name="keywords_reset_apps">reset preferences default</string> + <string name="keywords_all_apps">apps download applications system</string> <!-- Search keywords for different screen unlock modes : slide to unlock, password, pattern and PIN [CHAR LIMIT=none] --> <string name="keywords_lockscreen">slide password pattern pin</string> @@ -6088,10 +6090,29 @@ <item quantity="other"><xliff:g id="count" example="10">%d</xliff:g> permissions granted</item> </plurals> - <!-- Launch defaults preference summary with some set [CHAR LIMIT=40] --> - <string name="launch_defaults_some">Some defaults set</string> - <!-- Launch defaults preference summary with none set [CHAR LIMIT=40] --> - <string name="launch_defaults_none">No defaults set</string> + <!-- Launch defaults preference summary with some set [CHAR LIMIT=40] --> + <string name="launch_defaults_some">Some defaults set</string> + <!-- Launch defaults preference summary with none set [CHAR LIMIT=40] --> + <string name="launch_defaults_none">No defaults set</string> + + <!-- Label for showing all apps in list [CHAR LIMIT=30] --> + <string name="filter_all_apps">All apps</string> + <!-- Label for showing enabled apps in list [CHAR LIMIT=30] --> + <string name="filter_enabled_apps">Enabled</string> + <!-- Label for showing personal apps in list [CHAR LIMIT=30] --> + <string name="filter_personal_apps">Personal</string> + <!-- Label for showing work apps in list [CHAR LIMIT=30] --> + <string name="filter_work_apps">Work</string> + + <!-- Description for advanced menu option to reset app preferences [CHAR LIMIT=NONE] --> + <string name="reset_app_preferences_description">Reset preferences across all apps to defaults</string> + + <!-- Description of settings item that leads to list of all apps + [CHAR LIMIT=NONE] --> + <string name="all_apps_summary"><xliff:g id="count" example="10">%d</xliff:g> apps installed, including system and downloaded apps</string> + + <!-- Title for advanced application management settings [CHAR LIMIT=30] --> + <string name="advanced_apps">Advanced</string> <!-- Warning toast shown when data usage screen can't find specified app --> <string name="unknown_app">Unknown app</string> diff --git a/res/xml/advanced_apps.xml b/res/xml/advanced_apps.xml new file mode 100644 index 0000000..a6cec13 --- /dev/null +++ b/res/xml/advanced_apps.xml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2015 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. +--> + +<PreferenceScreen + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:settings="http://schemas.android.com/apk/res/com.android.settings" + android:key="applications_settings"> + + <PreferenceScreen + android:key="all_apps" + android:fragment="com.android.settings.applications.ManageApplications" + android:title="@string/filter_all_apps" + settings:keywords="@string/keywords_all_apps"> + <extra + android:name="classname" + android:value="com.android.settings.Settings$AllApplicationsActivity" /> + </PreferenceScreen> + + <Preference + android:key="reset_all" + android:title="@string/reset_app_preferences" + android:summary="@string/reset_app_preferences_description" + settings:keywords="@string/keywords_reset_apps" /> + +</PreferenceScreen> |