Merge "[5/n] Camera Compat UI: Unify margins logic for camera and size compat controls." into sc-v2-dev am: b6c52ec273

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16527687

Change-Id: Ib282c2fc1fd01d26841ee2003cd604d4150e569f
This commit is contained in:
Mariia Sandrikova
2022-01-07 11:02:56 +00:00
committed by Automerger Merge Worker
3 changed files with 11 additions and 12 deletions

View File

@@ -21,7 +21,7 @@
android:orientation="vertical" android:orientation="vertical"
android:clipToPadding="false" android:clipToPadding="false"
android:paddingEnd="@dimen/compat_hint_padding_end" android:paddingEnd="@dimen/compat_hint_padding_end"
android:paddingBottom="5dp" android:paddingBottom="8dp"
android:clickable="true"> android:clickable="true">
<TextView <TextView

View File

@@ -33,8 +33,8 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:clipToPadding="false" android:clipToPadding="false"
android:layout_marginEnd="16dp" android:layout_marginEnd="@dimen/compat_button_margin"
android:layout_marginBottom="16dp" android:layout_marginBottom="@dimen/compat_button_margin"
android:orientation="vertical"> android:orientation="vertical">
<ImageButton <ImageButton
@@ -62,8 +62,10 @@
<ImageButton <ImageButton
android:id="@+id/size_compat_restart_button" android:id="@+id/size_compat_restart_button"
android:visibility="gone" android:visibility="gone"
android:layout_width="@dimen/size_compat_button_width" android:layout_width="wrap_content"
android:layout_height="@dimen/size_compat_button_height" android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/compat_button_margin"
android:layout_marginBottom="@dimen/compat_button_margin"
android:src="@drawable/size_compat_restart_button_ripple" android:src="@drawable/size_compat_restart_button_ripple"
android:background="@android:color/transparent" android:background="@android:color/transparent"
android:contentDescription="@string/restart_button_description"/> android:contentDescription="@string/restart_button_description"/>

View File

@@ -200,11 +200,8 @@
<!-- Size of user education views on large screens (phone is just match parent). --> <!-- Size of user education views on large screens (phone is just match parent). -->
<dimen name="bubbles_user_education_width_large_screen">400dp</dimen> <dimen name="bubbles_user_education_width_large_screen">400dp</dimen>
<!-- The width of the size compat restart button including padding. --> <!-- Bottom and end margin for compat buttons. -->
<dimen name="size_compat_button_width">80dp</dimen> <dimen name="compat_button_margin">16dp</dimen>
<!-- The height of the size compat restart button including padding. -->
<dimen name="size_compat_button_height">64dp</dimen>
<!-- The radius of the corners of the compat hint bubble. --> <!-- The radius of the corners of the compat hint bubble. -->
<dimen name="compat_hint_corner_radius">28dp</dimen> <dimen name="compat_hint_corner_radius">28dp</dimen>
@@ -212,8 +209,8 @@
<!-- The width of the compat hint point. --> <!-- The width of the compat hint point. -->
<dimen name="compat_hint_point_width">10dp</dimen> <dimen name="compat_hint_point_width">10dp</dimen>
<!-- The end padding for the compat hint. Computed as (size_compat_button_width / 2 <!-- The end padding for the compat hint. Computed as (compat button width (=48) / 2
- compat_hint_corner_radius - compat_hint_point_width /2). --> + compat_button_margin - compat_hint_corner_radius - compat_hint_point_width / 2). -->
<dimen name="compat_hint_padding_end">7dp</dimen> <dimen name="compat_hint_padding_end">7dp</dimen>
<!-- The width of the size compat hint. --> <!-- The width of the size compat hint. -->