summaryrefslogtreecommitdiffstats
path: root/res/layout/preference_user_delete_widget.xml
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2012-09-06 18:04:06 -0700
committerAmith Yamasani <yamasani@google.com>2012-09-10 18:15:19 -0700
commitdc6bfa6ef57705c47b93caab44d39c76d4840ea2 (patch)
tree5750301c3b2a734cef92b1320c6a84f86880f270 /res/layout/preference_user_delete_widget.xml
parent1352c142a33d0c3ad8ed0f58bbc1d6ce7158cb55 (diff)
downloadpackages_apps_Settings-dc6bfa6ef57705c47b93caab44d39c76d4840ea2.zip
packages_apps_Settings-dc6bfa6ef57705c47b93caab44d39c76d4840ea2.tar.gz
packages_apps_Settings-dc6bfa6ef57705c47b93caab44d39c76d4840ea2.tar.bz2
User management UI: take 2
Single screen user management, also visible on secondary users. Work in progress, especially with respect to synchronizing with the Me profile. Change-Id: Id6e94a85d53356847e4e019c52e3388de9ecb354
Diffstat (limited to 'res/layout/preference_user_delete_widget.xml')
-rw-r--r--res/layout/preference_user_delete_widget.xml41
1 files changed, 41 insertions, 0 deletions
diff --git a/res/layout/preference_user_delete_widget.xml b/res/layout/preference_user_delete_widget.xml
new file mode 100644
index 0000000..994b77a
--- /dev/null
+++ b/res/layout/preference_user_delete_widget.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 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.
+-->
+
+<!-- Used by UserPreference to show the trash icon -->
+<LinearLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent"
+ android:orientation="horizontal">
+ <View
+ 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/trash_user"
+ android:layout_width="wrap_content"
+ android:layout_height="fill_parent"
+ android:paddingStart="15dip"
+ android:paddingEnd="?android:attr/scrollbarSize"
+ android:src="@drawable/ic_menu_delete_holo_dark"
+ android:contentDescription="@string/user_delete_user_description"
+ android:layout_gravity="center"
+ android:clickable="true"
+ android:focusable="true"
+ android:background="?android:attr/selectableItemBackground" />
+</LinearLayout>