diff options
author | Jason Monk <jmonk@google.com> | 2015-04-06 14:00:10 -0400 |
---|---|---|
committer | Jason Monk <jmonk@google.com> | 2015-04-07 10:13:00 -0400 |
commit | e8c6eb9e85ef9d635f2f2f94d89f4b8abe461784 (patch) | |
tree | 8de70f8d5ec592235db747b5a054f672a507189e /res | |
parent | 0de1d79bbdc6249e546fc114ec4c57153f7d9b9d (diff) | |
download | android_packages_apps_PackageInstaller-e8c6eb9e85ef9d635f2f2f94d89f4b8abe461784.tar.gz android_packages_apps_PackageInstaller-e8c6eb9e85ef9d635f2f2f94d89f4b8abe461784.tar.bz2 android_packages_apps_PackageInstaller-e8c6eb9e85ef9d635f2f2f94d89f4b8abe461784.zip |
Update permissions dialog from redlines
Change-Id: I0b3146add8984fdea1a702d447461e82f4aa7c31
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/grant_permissions.xml | 30 | ||||
-rwxr-xr-x | res/values/colors.xml | 2 |
2 files changed, 20 insertions, 12 deletions
diff --git a/res/layout/grant_permissions.xml b/res/layout/grant_permissions.xml index 2004447f..64abe473 100644 --- a/res/layout/grant_permissions.xml +++ b/res/layout/grant_permissions.xml @@ -17,19 +17,17 @@ <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" - android:paddingTop="16dip" - android:paddingBottom="12dip" - android:paddingStart="16dip" - android:paddingEnd="16dip" - android:minHeight="108dip"> + android:paddingTop="24dip" + android:paddingBottom="8dip" + android:paddingStart="22dip" + android:paddingEnd="16dip"> <ImageView android:id="@+id/permission_icon" - android:layout_width="wrap_content" - android:layout_height="wrap_content" + android:layout_width="36dip" + android:layout_height="36dip" android:tint="?android:attr/colorAccent" - android:paddingTop="6dip" - android:paddingEnd="10dip"> + android:scaleType="fitCenter"> </ImageView> <TextView @@ -37,6 +35,10 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toRightOf="@id/permission_icon" + android:lineSpacingMultiplier="1.024" + android:fontFamily="@*android:string/font_family_body_2_material" + android:paddingStart="16dip" + android:paddingEnd="8dip" style="?android:attr/textAppearanceMedium"> </TextView> @@ -45,7 +47,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/permission_message" - android:layout_marginTop="12dp" + android:layout_marginTop="16dip" android:text="@string/never_ask_again" style="?android:attr/textAppearanceSmall" android:visibility="gone"> @@ -56,13 +58,16 @@ android:layout_height="wrap_content" android:layout_below="@id/do_not_ask_checkbox" android:orientation="horizontal" - android:paddingTop="4dip"> + android:paddingStart="2dip" + android:paddingTop="16dip"> <TextView android:id="@+id/current_page_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" + style="@android:style/TextAppearance.Material.Body2" + android:textColor="@color/grant_permissions_progress_color" android:visibility="invisible"> </TextView> @@ -71,7 +76,8 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" style="?android:attr/buttonBarButtonStyle" - android:text="@string/grant_dialog_button_deny"> + android:text="@string/grant_dialog_button_deny" + android:layout_marginEnd="8dip"> </Button> <Button diff --git a/res/values/colors.xml b/res/values/colors.xml index 5d92d6fc..ae10cb28 100755 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -18,5 +18,7 @@ <color name="shadow">#cc222222</color> <color name="transparent">#00000000</color> <color name="header_background_color">#ff37474f</color> + <color name="grant_permissions_app_color">@*android:color/primary_text_default_material_light</color> + <color name="grant_permissions_progress_color">#60000000</color> </resources> |