am ed0cf41d: am 99bde108: Merge "Final refactoring of the user/profile settings screen." into jb-mr2-dev
* commit 'ed0cf41d3a36769b0f7b539e0456aff9d1795339': Final refactoring of the user/profile settings screen.
This commit is contained in:
@@ -31,8 +31,8 @@
|
||||
android:id="@+id/manage_user"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:paddingStart="12dip"
|
||||
android:paddingEnd="12dip"
|
||||
android:paddingStart="16dip"
|
||||
android:paddingEnd="16dip"
|
||||
android:src="@drawable/ic_sysbar_quicksettings"
|
||||
android:contentDescription="@string/user_delete_user_description"
|
||||
android:layout_gravity="center"
|
||||
@@ -48,8 +48,8 @@
|
||||
android:id="@+id/trash_user"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:paddingStart="12dip"
|
||||
android:paddingEnd="12dip"
|
||||
android:paddingStart="16dip"
|
||||
android:paddingEnd="16dip"
|
||||
android:src="@drawable/ic_menu_delete_holo_dark"
|
||||
android:contentDescription="@string/user_delete_user_description"
|
||||
android:layout_gravity="center"
|
||||
|
||||
41
res/layout/two_line_list_item.xml
Normal file
41
res/layout/two_line_list_item.xml
Normal file
@@ -0,0 +1,41 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2013 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/listPreferredItemHeight"
|
||||
android:paddingStart="16dip"
|
||||
android:paddingEnd="16dip"
|
||||
android:paddingTop="8dip"
|
||||
android:paddingBottom="8dip">
|
||||
<TextView
|
||||
android:id="@+id/title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:singleLine="true"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:ellipsize="marquee"
|
||||
android:fadingEdge="horizontal"/>
|
||||
<TextView
|
||||
android:id="@+id/summary"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/title"
|
||||
android:layout_alignStart="@id/title"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textColor="?android:attr/textColorSecondary"
|
||||
android:maxLines="4" />
|
||||
</RelativeLayout>
|
||||
@@ -4327,37 +4327,32 @@
|
||||
|
||||
<!-- User settings screen title [CHAR LIMIT=25] -->
|
||||
<string name="user_settings_title">Users</string>
|
||||
<!-- User settings section title for details about you [CHAR LIMIT=25] -->
|
||||
<string name="user_you_section">You</string>
|
||||
<!-- User settings trusted user list section header [CHAR LIMIT=40] -->
|
||||
<string name="user_trusted_list_title">Users</string>
|
||||
<!-- User settings limited user list section header [CHAR LIMIT=40] -->
|
||||
<string name="user_limited_list_title">Limited users</string>
|
||||
<!-- User settings header for list of users and profiles [CHAR LIMIT=40] -->
|
||||
<string name="user_list_title">Users & profiles</string>
|
||||
<!-- User settings add user menu [CHAR LIMIT=35] -->
|
||||
<string name="user_add_user_menu">Add user</string>
|
||||
<!-- User settings add restricted user label [CHAR LIMIT=35] -->
|
||||
<string name="user_add_restricted">Add limited user</string>
|
||||
<!-- User settings summary for add restricted user [CHAR LIMIT=100] -->
|
||||
<string name="user_add_restricted_summary">Limited users can only access the apps and content you select</string>
|
||||
<!-- User settings add user label [CHAR LIMIT=35] -->
|
||||
<string name="user_add_trusted">Add standard user</string>
|
||||
<!-- User settings summary for add trusted user [CHAR LIMIT=100] -->
|
||||
<string name="user_add_trusted_summary">Standard users have their own apps and content</string>
|
||||
|
||||
<!-- User summary to indicate that user is currently active in the background [CHAR LIMIT=100] -->
|
||||
<string name="user_summary_active">Active</string>
|
||||
<!-- User summary to indicate that user is currently inactive in the background [CHAR LIMIT=100] -->
|
||||
<string name="user_summary_inactive">Not active</string>
|
||||
<string name="user_add_user_menu">Add user or profile</string>
|
||||
<!-- User settings summary for a restricted profile [CHAR LIMIT=50] -->
|
||||
<string name="user_summary_restricted_profile">Restricted profile</string>
|
||||
<!-- User summary to indicate that user is currently not set up [CHAR LIMIT=100] -->
|
||||
<string name="user_summary_not_set_up">Not set up</string>
|
||||
<!-- Summary text for a trusted user [CHAR LIMIT=50] -->
|
||||
<string name="user_trusted">Trusted</string>
|
||||
<!-- Summary text for a limited user [CHAR LIMIT=50] -->
|
||||
<string name="user_limited">Limited</string>
|
||||
<!-- User summary to indicate that restricted profile is currently not set up [CHAR LIMIT=100] -->
|
||||
<string name="user_summary_restricted_not_set_up">Not set up - Restricted profile</string>
|
||||
<!-- User information string to represent the owner of the device [CHAR LIMIT=25] -->
|
||||
<string name="user_owner">Owner</string>
|
||||
<!-- User settings title for current user entry "You" user. [CHAR LIMIT=30] -->
|
||||
<string name="user_you">You (<xliff:g id="name" example="Name">%s</xliff:g>)</string>
|
||||
<!-- Title for the preference to enter the nickname of the userto display in the user switcher [CHAR LIMIT=25]-->
|
||||
<string name="user_nickname">Nickname</string>
|
||||
<!-- Title for add user type dialog [CHAR LIMIT=45] -->
|
||||
<string name="user_add_user_type_title">Add</string>
|
||||
<!-- Summary for add user entry in the choice dialog [CHAR LIMIT=none] -->
|
||||
<string name="user_add_user_item_summary">Users have their own apps and content</string>
|
||||
<!-- Summary for add restricted profile entry in the choice dialog [CHAR LIMIT=none] -->
|
||||
<string name="user_add_profile_item_summary">Restricted profiles can only access the apps and content from your accounts</string>
|
||||
<!-- Button text for adding a regular user [CHAR LIMIT=25] -->
|
||||
<string name="user_add_user_item_title">User</string>
|
||||
<!-- Button text for adding a restricted profile [CHAR LIMIT=25] -->
|
||||
<string name="user_add_profile_item_title">Restricted profile</string>
|
||||
<!-- Title for add user confirmation dialog [CHAR LIMIT=30] -->
|
||||
<string name="user_add_user_title">Add new user</string>
|
||||
<!-- Message for add user confirmation dialog - long version. [CHAR LIMIT=none] -->
|
||||
@@ -4368,6 +4363,8 @@
|
||||
<string name="user_setup_dialog_title">Set up user now?</string>
|
||||
<!-- Message in dialog to setup a new user after creation [CHAR LIMIT=none] -->
|
||||
<string name="user_setup_dialog_message">Make sure the person is available to take the tablet and set up their space</string>
|
||||
<!-- Message in dialog to setup a new restricted profile after creation [CHAR LIMIT=none] -->
|
||||
<string name="user_setup_profile_dialog_message">Set up profile now?</string>
|
||||
<!-- Button text to setup the new user now [CHAR LIMIT=25] -->
|
||||
<string name="user_setup_button_setup_now">Set up now</string>
|
||||
<!-- Button text to setup the new user later [CHAR LIMIT=25] -->
|
||||
@@ -4383,6 +4380,8 @@
|
||||
<string name="user_remove_user_menu">Delete <xliff:g id="user_name">%1$s</xliff:g> from this device</string>
|
||||
<!-- User details new user name [CHAR LIMIT=30] -->
|
||||
<string name="user_new_user_name">New user</string>
|
||||
<!-- User details new restricted profile name [CHAR LIMIT=30] -->
|
||||
<string name="user_new_profile_name">New profile</string>
|
||||
<!-- User (self) removal confirmation title [CHAR LIMIT=30] -->
|
||||
<string name="user_confirm_remove_self_title">Delete yourself?</string>
|
||||
<!-- User removal confirmation title [CHAR LIMIT=25] -->
|
||||
|
||||
@@ -19,25 +19,13 @@
|
||||
android:title="@string/user_settings_title">
|
||||
|
||||
<PreferenceCategory
|
||||
android:key="trusted_user_list"
|
||||
android:title="@string/user_trusted_list_title">
|
||||
android:key="user_list"
|
||||
android:title="@string/user_list_title">
|
||||
</PreferenceCategory>
|
||||
|
||||
<Preference
|
||||
android:key="user_add_trusted"
|
||||
android:title="@string/user_add_trusted"
|
||||
android:summary="@string/user_add_trusted_summary"
|
||||
android:icon="@drawable/ic_menu_add" />
|
||||
|
||||
<PreferenceCategory
|
||||
android:key="limited_user_list"
|
||||
android:title="@string/user_limited_list_title">
|
||||
</PreferenceCategory>
|
||||
|
||||
<Preference
|
||||
android:key="user_add_restricted"
|
||||
android:title="@string/user_add_restricted"
|
||||
android:summary="@string/user_add_restricted_summary"
|
||||
android:key="user_add"
|
||||
android:title="@string/user_add_user_menu"
|
||||
android:icon="@drawable/ic_menu_add" />
|
||||
|
||||
</PreferenceScreen>
|
||||
|
||||
Reference in New Issue
Block a user