summaryrefslogtreecommitdiffstats
path: root/res/layout/device_admin_settings.xml
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2010-01-12 18:18:05 -0800
committerDianne Hackborn <hackbod@google.com>2010-01-16 18:30:05 -0800
commitfeff65213231ba6a0f6185f98e660042b5b14595 (patch)
tree023516c9ba4684f9a5d755104601ba0073899f5a /res/layout/device_admin_settings.xml
parentfeeb75613241556ee2a6504a55a2f3849fb4ce4c (diff)
downloadpackages_apps_Settings-feff65213231ba6a0f6185f98e660042b5b14595.zip
packages_apps_Settings-feff65213231ba6a0f6185f98e660042b5b14595.tar.gz
packages_apps_Settings-feff65213231ba6a0f6185f98e660042b5b14595.tar.bz2
Initial UI for managing device policies.
More to come... what is here now is very ugly, and completely missing the confirmation screen for setting a device administrator.
Diffstat (limited to 'res/layout/device_admin_settings.xml')
-rw-r--r--res/layout/device_admin_settings.xml88
1 files changed, 88 insertions, 0 deletions
diff --git a/res/layout/device_admin_settings.xml b/res/layout/device_admin_settings.xml
new file mode 100644
index 0000000..221e45f
--- /dev/null
+++ b/res/layout/device_admin_settings.xml
@@ -0,0 +1,88 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2010 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.
+-->
+
+<FrameLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+ <LinearLayout
+ android:id="@+id/active_layout"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical"
+ android:visibility="gone">
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:paddingLeft="20dip"
+ android:paddingTop="5dip"
+ android:text="@string/active_device_admin_msg"
+ android:gravity="center"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal">
+ <ImageView android:id="@+id/active_icon"
+ android:layout_width="@android:dimen/app_icon_size"
+ android:layout_height="@android:dimen/app_icon_size"
+ android:layout_marginLeft="5dip"
+ android:layout_marginRight="11dip"
+ android:layout_gravity="center_vertical"
+ android:scaleType="fitCenter"/>
+ <TextView android:id="@+id/active_name"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:layout_marginBottom="2dip"
+ android:layout_gravity="center_vertical"
+ android:textAppearance="?android:attr/textAppearanceMedium"
+ android:textStyle="bold"
+ android:singleLine="true"
+ android:ellipsize="marquee" />
+ </LinearLayout>
+ <TextView android:id="@+id/active_description"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content" />
+ <Button android:id="@+id/remove_button"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android_layout_gravity="center_vertical|east"
+ android:text="@string/remove_device_admin"
+ />
+ </LinearLayout>
+
+ <LinearLayout
+ android:id="@+id/select_layout"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical"
+ android:visibility="gone">
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:paddingLeft="20dip"
+ android:paddingTop="5dip"
+ android:text="@string/select_device_admin_msg"
+ android:gravity="center"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
+ <ListView android:id="@android:id/list"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:drawSelectorOnTop="false"
+ android:fastScrollEnabled="true" />
+ </LinearLayout>
+</FrameLayout>