From 37af9df3adf1154a5c2fd1d05c7b190df429627c Mon Sep 17 00:00:00 2001 From: Elise Richards Date: Fri, 17 Jul 2020 15:54:57 -0500 Subject: [PATCH] For #12532: Align Settings -> Site permissions -> Sub-pages to 72dp keyline (#12680) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Hakkı Kaan Çalışkan --- ...mponent_permissions_blocked_by_android.xml | 34 ++--- ...e_permissions_exceptions_feature_phone.xml | 26 ++-- ..._manage_site_permissions_feature_phone.xml | 127 +++++++++--------- 3 files changed, 96 insertions(+), 91 deletions(-) diff --git a/app/src/main/res/layout/component_permissions_blocked_by_android.xml b/app/src/main/res/layout/component_permissions_blocked_by_android.xml index 5d179c8bb..7ddd84db2 100644 --- a/app/src/main/res/layout/component_permissions_blocked_by_android.xml +++ b/app/src/main/res/layout/component_permissions_blocked_by_android.xml @@ -2,24 +2,24 @@ - + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:id="@+id/permissions_blocked_container" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:layout_marginTop="16dp" + android:paddingStart="@dimen/radio_button_preference_horizontal" + android:paddingEnd="@dimen/radio_button_preference_horizontal" + android:visibility="gone" + tools:visibility="visible"> @@ -27,21 +27,24 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:textAppearance="?android:attr/textAppearanceListItemSmall" + android:layout_marginStart="@dimen/site_permissions_exceptions_item_height" android:text="@string/phone_feature_blocked_intro" - android:layout_marginBottom="16dp"/> + android:layout_marginBottom="16dp" /> + android:layout_marginBottom="8dp" /> @@ -50,7 +53,8 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:textAppearance="?android:attr/textAppearanceListItemSmall" - tools:text="@string/phone_feature_blocked_step_feature"/> + android:layout_marginStart="@dimen/site_permissions_exceptions_item_height" + tools:text="@string/phone_feature_blocked_step_feature" /> - - - + android:paddingBottom="@dimen/radio_button_preference_vertical" /> - - + android:paddingBottom="@dimen/radio_button_preference_vertical" /> + - - + + - + \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_manage_site_permissions_feature_phone.xml b/app/src/main/res/layout/fragment_manage_site_permissions_feature_phone.xml index a4b9979ac..862a5ad6a 100644 --- a/app/src/main/res/layout/fragment_manage_site_permissions_feature_phone.xml +++ b/app/src/main/res/layout/fragment_manage_site_permissions_feature_phone.xml @@ -7,76 +7,77 @@ xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="fill_parent" android:layout_height="fill_parent"> - - + android:layout_height="wrap_content" + android:orientation="vertical" + android:layout_marginTop="@dimen/radio_button_preference_vertical"> - + android:layout_height="wrap_content"> - + - + - - + - + + - + + + \ No newline at end of file