diff options
author | Amith Yamasani <yamasani@google.com> | 2013-04-17 18:27:01 -0700 |
---|---|---|
committer | Amith Yamasani <yamasani@google.com> | 2013-04-17 21:55:06 -0700 |
commit | d4abdd27adac36e7243bcaae37a7a2c69ac73db7 (patch) | |
tree | de2e60304538a878f1011f67b7b5e48cc3257b8c /res | |
parent | 4e8cbb32a2ecef9c0bbdaaeb97e6fc29ec14a902 (diff) | |
download | packages_apps_Settings-d4abdd27adac36e7243bcaae37a7a2c69ac73db7.zip packages_apps_Settings-d4abdd27adac36e7243bcaae37a7a2c69ac73db7.tar.gz packages_apps_Settings-d4abdd27adac36e7243bcaae37a7a2c69ac73db7.tar.bz2 |
Reorganize users screen
As per product/ux feedback, move around and rename the users.
Settings button for some users.
Fix crash in limited user when clicking on the user:
Bug: 8494377
Change-Id: I346d12646d32608b01f2c2c2c866b6da51408618
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/ownerinfo.xml | 10 | ||||
-rw-r--r-- | res/layout/preference_user_delete_widget.xml | 8 | ||||
-rw-r--r-- | res/values/strings.xml | 16 | ||||
-rw-r--r-- | res/xml/user_settings.xml | 31 |
4 files changed, 34 insertions, 31 deletions
diff --git a/res/layout/ownerinfo.xml b/res/layout/ownerinfo.xml index d33f156..35f04d8 100644 --- a/res/layout/ownerinfo.xml +++ b/res/layout/ownerinfo.xml @@ -37,10 +37,20 @@ android:background="#ff404040" /> + <EditText android:id="@+id/owner_info_nickname" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="8dip" + android:gravity="top" + android:hint="@string/user_nickname" + android:inputType="textCapWords" + /> + <CheckBox android:id="@+id/show_owner_info_on_lockscreen_checkbox" android:layout_width="match_parent" android:layout_height="64dip" android:gravity="center_vertical" + android:layout_marginTop="8dip" android:text="@string/show_owner_info_on_lockscreen_label" android:textAppearance="?android:attr/textAppearanceMedium" android:textColor="?android:attr/textColorSecondary" diff --git a/res/layout/preference_user_delete_widget.xml b/res/layout/preference_user_delete_widget.xml index 57c240f..6dc6a79 100644 --- a/res/layout/preference_user_delete_widget.xml +++ b/res/layout/preference_user_delete_widget.xml @@ -20,6 +20,13 @@ android:layout_width="wrap_content" android:layout_height="match_parent" android:orientation="horizontal"> + <View + android:id="@+id/divider_manage" + android:layout_width="2dip" + android:layout_height="match_parent" + android:layout_marginTop="5dip" + android:layout_marginBottom="5dip" + android:background="@android:drawable/divider_horizontal_dark" /> <ImageView android:id="@+id/manage_user" android:layout_width="wrap_content" @@ -31,6 +38,7 @@ android:layout_gravity="center" android:background="?android:attr/selectableItemBackground" /> <View + android:id="@+id/divider_delete" android:layout_width="2dip" android:layout_height="match_parent" android:layout_marginTop="5dip" diff --git a/res/values/strings.xml b/res/values/strings.xml index 6f43881..665959a 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -4324,20 +4324,20 @@ <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=30] --> - <string name="user_trusted_list_title">Trusted users</string> - <!-- User settings limited user list section header [CHAR LIMIT=30] --> + <!-- 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 add user menu [CHAR LIMIT=20] --> + <!-- 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=20] --> + <!-- 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=20] --> - <string name="user_add_trusted">Add trusted user</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">Trusted users have no restrictions</string> + <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> diff --git a/res/xml/user_settings.xml b/res/xml/user_settings.xml index 2e73e9e..6c6ad92 100644 --- a/res/xml/user_settings.xml +++ b/res/xml/user_settings.xml @@ -19,20 +19,15 @@ android:title="@string/user_settings_title"> <PreferenceCategory - android:key="user_you" - android:title="@string/user_you_section"/> - <Preference - android:key="user_me" - android:summary="@string/user_owner" /> - <com.android.settings.SelectableEditTextPreference - android:key="user_nickname" - android:title="@string/user_nickname" - android:icon="@drawable/empty_icon" /> + android:key="trusted_user_list" + android:title="@string/user_trusted_list_title"> + </PreferenceCategory> + <Preference - android:key="user_owner_info" - android:title="@string/owner_info_settings_title" - android:icon="@drawable/empty_icon" - android:fragment="com.android.settings.OwnerInfoSettings" /> + 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" @@ -45,14 +40,4 @@ android:summary="@string/user_add_restricted_summary" android:icon="@drawable/ic_menu_add" /> - <PreferenceCategory - android:key="trusted_user_list" - android:title="@string/user_trusted_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" /> </PreferenceScreen> |