diff options
author | Amith Yamasani <yamasani@google.com> | 2011-01-24 20:43:05 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-01-24 20:43:05 -0800 |
commit | 48e031c710acb812361d9689836b69b3ee5b5ac2 (patch) | |
tree | 120b986f2ace9d58eb8a88eda6a1e2bb189d7cf4 /res/layout | |
parent | 3f5e524d5d69fe23df66a54ea26ff57612a1548c (diff) | |
parent | a1d01841664131eca201acfaf747f1f187de10f6 (diff) | |
download | packages_apps_Settings-48e031c710acb812361d9689836b69b3ee5b5ac2.tar.gz packages_apps_Settings-48e031c710acb812361d9689836b69b3ee5b5ac2.tar.bz2 packages_apps_Settings-48e031c710acb812361d9689836b69b3ee5b5ac2.zip |
Merge "Tabletize Device administrator screen and fix the layout for DeviceAdminAdd." into honeycomb
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/device_admin_add.xml | 82 | ||||
-rw-r--r-- | res/layout/device_admin_item.xml | 73 | ||||
-rw-r--r-- | res/layout/device_admin_settings.xml | 21 |
3 files changed, 89 insertions, 87 deletions
diff --git a/res/layout/device_admin_add.xml b/res/layout/device_admin_add.xml index f3ba59e7f..ac30ed98b 100644 --- a/res/layout/device_admin_add.xml +++ b/res/layout/device_admin_add.xml @@ -21,25 +21,12 @@ android:layout_height="match_parent" android:orientation="vertical"> - <LinearLayout - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:orientation="horizontal" - android:background="@*android:drawable/title_bar_medium"> - <TextView android:id="@+id/title" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:gravity="center" - android:textAppearance="?android:attr/textAppearanceLarge" - android:textColor="?android:attr/textColorPrimary" - android:shadowColor="?android:attr/colorBackground" - android:shadowRadius="2" /> - </LinearLayout> - <ScrollView android:layout_width="match_parent" android:layout_height="0dip" android:layout_weight="1.0" + android:layout_marginLeft="16dip" + android:layout_marginRight="16dip" android:gravity="top"> <LinearLayout android:layout_width="match_parent" @@ -111,31 +98,50 @@ </LinearLayout> </ScrollView> - <LinearLayout style="@android:style/ButtonBar" + <LinearLayout android:id="@+id/buttonPanel" android:layout_width="match_parent" android:layout_height="wrap_content" - android:orientation="horizontal"> - <View - android:layout_width="0dip" - android:layout_height="0dip" - android:layout_weight="1" /> - <Button android:id="@+id/action_button" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_weight="1" /> - <View - android:layout_width="0dip" - android:layout_height="0dip" - android:layout_weight="1" /> - <Button android:id="@+id/cancel_button" - android:layout_width="wrap_content" + android:minHeight="54dip" + android:orientation="vertical" + android:divider="?android:attr/dividerHorizontal" + android:showDividers="beginning" + android:dividerPadding="16dip"> + <LinearLayout + style="?android:attr/buttonBarStyle" + android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_weight="1" - android:text="@string/cancel" /> - <View - android:layout_width="0dip" - android:layout_height="0dip" - android:layout_weight="1" /> - </LinearLayout> + android:orientation="horizontal" + android:paddingLeft="2dip" + android:paddingRight="2dip" + android:measureWithLargestChild="true"> + <LinearLayout android:id="@+id/leftSpacer" + android:layout_weight="0.25" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:visibility="gone" /> + <Button android:id="@+id/action_button" + android:layout_width="0dip" + android:layout_gravity="left" + android:layout_weight="1" + android:maxLines="2" + style="?android:attr/buttonBarButtonStyle" + android:layout_height="wrap_content" /> + <Button android:id="@+id/cancel_button" + android:layout_width="0dip" + android:layout_gravity="right" + android:layout_weight="1" + android:maxLines="2" + android:text="@string/cancel" + style="?android:attr/buttonBarButtonStyle" + android:layout_height="wrap_content" /> + <LinearLayout android:id="@+id/rightSpacer" + android:layout_width="0dip" + android:layout_weight="0.25" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:visibility="gone" /> + </LinearLayout> + </LinearLayout> </LinearLayout> diff --git a/res/layout/device_admin_item.xml b/res/layout/device_admin_item.xml index 49cbc613f..fe9e45a17 100644 --- a/res/layout/device_admin_item.xml +++ b/res/layout/device_admin_item.xml @@ -21,49 +21,62 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:minHeight="?android:attr/listPreferredItemHeight" - android:orientation="vertical" + android:orientation="horizontal" android:paddingRight="6dip" android:paddingLeft="6dip" - android:gravity="fill" > + android:gravity="center_vertical" > <LinearLayout - android:layout_width="match_parent" - android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:minWidth="64dip" + android:gravity="center" + android:padding="8dip" android:orientation="horizontal"> - - <ImageView android:id="@+id/icon" + <ImageView + android:id="@+id/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"/> - + /> + </LinearLayout> + + <RelativeLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="8dip" + android:layout_marginBottom="8dip" + android:layout_weight="1"> + <TextView android:id="@+id/name" - android:layout_width="0dp" + android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_weight="1" - android:layout_gravity="center_vertical" - android:textAppearance="?android:attr/textAppearanceMedium" - android:textStyle="bold" android:singleLine="true" + android:textAppearance="?android:attr/textAppearanceMedium" android:ellipsize="marquee" - android:layout_marginBottom="2dip" /> - - <CheckBox xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@+id/checkbox" + android:layout_alignParentTop="true" + android:fadingEdge="horizontal" /> + + <TextView android:id="@+id/description" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_gravity="center_vertical" - android:focusable="false" - android:clickable="false" /> - </LinearLayout> - - <TextView android:id="@+id/description" - android:layout_width="match_parent" + android:layout_marginTop="4dip" + android:layout_below="@id/name" + android:layout_alignLeft="@id/name" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textColor="?android:attr/textColorSecondary" + android:maxLines="4" /> + + </RelativeLayout> + + <CheckBox xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/checkbox" + android:layout_width="wrap_content" android:layout_height="wrap_content" - android:textAppearance="?android:attr/textAppearanceSmall" - android:singleLine="true" - android:ellipsize="end" /> - + android:layout_gravity="center_vertical" + android:layout_marginRight="16dip" + android:layout_marginLeft="16dip" + android:focusable="false" + android:clickable="false" /> + </LinearLayout> diff --git a/res/layout/device_admin_settings.xml b/res/layout/device_admin_settings.xml index eaf42feb4..669ac3c34 100644 --- a/res/layout/device_admin_settings.xml +++ b/res/layout/device_admin_settings.xml @@ -18,27 +18,10 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> - <LinearLayout - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:orientation="horizontal" - android:background="@*android:drawable/title_bar_medium"> - <TextView - android:layout_width="match_parent" - android:layout_height="match_parent" - android:text="@string/select_device_admin_msg" - android:gravity="center" - android:textAppearance="?android:attr/textAppearanceLarge" - android:textColor="?android:attr/textColorPrimary" - android:shadowColor="?android:attr/colorBackground" - android:shadowRadius="2" /> - </LinearLayout> <FrameLayout android:layout_width="match_parent" android:layout_height="0px" - android:layout_weight="1" - android:paddingTop="10dip" - android:paddingBottom="10dip"> + android:layout_weight="1"> <ListView android:id="@android:id/list" android:layout_width="match_parent" android:layout_height="match_parent" @@ -49,6 +32,6 @@ android:layout_height="match_parent" android:gravity="center" android:text="@string/no_device_admins" - android:textAppearance="?android:attr/textAppearanceLarge" /> + android:textAppearance="?android:attr/textAppearanceMedium" /> </FrameLayout> </LinearLayout> |