summaryrefslogtreecommitdiffstats
path: root/res/layout/preference_home_app.xml
diff options
context:
space:
mode:
authorSander Alewijnse <salewijnse@google.com>2014-07-15 20:23:25 +0100
committerSander Alewijnse <salewijnse@google.com>2014-08-07 12:48:22 +0100
commitcd40220372e3bac5bd52a8bfa4d4fce0e7d30078 (patch)
tree9f702b15f3b2f161130f1f0c227b04e859e49436 /res/layout/preference_home_app.xml
parent4a45be2ff83e1b3b9bd52be523639d100311bec3 (diff)
downloadpackages_apps_Settings-cd40220372e3bac5bd52a8bfa4d4fce0e7d30078.zip
packages_apps_Settings-cd40220372e3bac5bd52a8bfa4d4fce0e7d30078.tar.gz
packages_apps_Settings-cd40220372e3bac5bd52a8bfa4d4fce0e7d30078.tar.bz2
Prevent launcher switching in Settings app.
User won't be able to switch to launchers that do not support managed profiles. Additional explanation is shown in text under the name of the launcher. Bug:15099904 Change-Id: I12470bf396d41ef47d463ef42835964aacda9719
Diffstat (limited to 'res/layout/preference_home_app.xml')
-rw-r--r--res/layout/preference_home_app.xml38
1 files changed, 30 insertions, 8 deletions
diff --git a/res/layout/preference_home_app.xml b/res/layout/preference_home_app.xml
index 0ee154e..9415752 100644
--- a/res/layout/preference_home_app.xml
+++ b/res/layout/preference_home_app.xml
@@ -30,6 +30,7 @@
android:clickable="true"
android:gravity="center_vertical"
android:background="?android:attr/selectableItemBackground" >
+
<RadioButton
android:id="@+id/home_radio"
android:layout_width="wrap_content"
@@ -40,6 +41,7 @@
android:orientation="vertical"
android:clickable="false"
android:focusable="false" />
+
<ImageView
android:id="@+android:id/icon"
android:layout_width="48dp"
@@ -47,17 +49,35 @@
android:layout_gravity="center"
android:minWidth="48dp"
android:scaleType="centerInside"
- android:layout_marginEnd="@*android:dimen/preference_item_padding_inner"
- />
- <TextView
- android:id="@+android:id/title"
+ android:layout_marginEnd="@*android:dimen/preference_item_padding_inner" />
+
+ <LinearLayout
android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:singleLine="true"
+ android:layout_height="match_parent"
android:layout_weight="1"
- android:textAppearance="?android:attr/textAppearanceMedium"
- android:ellipsize="end" />
+ android:focusable="true"
+ android:clickable="true"
+ android:gravity="center_vertical"
+ android:orientation="vertical">
+
+ <TextView
+ android:id="@+android:id/title"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:singleLine="true"
+ android:textAppearance="?android:attr/textAppearanceMedium"
+ android:ellipsize="end" />
+
+ <TextView
+ android:id="@+android:id/summary"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textAppearance="?android:attr/textAppearanceSmall" />
+
+ </LinearLayout>
+
</LinearLayout>
+
<View
android:id="@+id/home_divider"
android:layout_width="2dip"
@@ -65,6 +85,7 @@
android:layout_marginTop="5dip"
android:layout_marginBottom="5dip"
android:background="@android:drawable/divider_horizontal_dark" />
+
<ImageView
android:id="@+id/home_app_uninstall"
android:layout_width="wrap_content"
@@ -77,4 +98,5 @@
android:clickable="true"
android:focusable="true"
android:background="?android:attr/selectableItemBackground" />
+
</LinearLayout>