Slightly change safety hub expandble toggle
This CL: - Changes the layout of the safety hub expandable toggle so that the arrow does not move when the toggle is expanded - Moves the padding from the text container to the icon container to avoid double padding for toggles without an icon. The advanced protection settings uses the toggle without an icon. BUG=411508495 Change-Id: I3eb47361e1a0775ac8f94aef3ed7d5688c5e87cc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6469335 Commit-Queue: Peter Kotwicz <pkotwicz@chromium.org> Reviewed-by: Rubin Deliallisi <rubindl@chromium.org> Cr-Commit-Position: refs/heads/main@{#1450736}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
0432df6194
commit
53eb165d2b
@ -24,7 +24,8 @@ found in the LICENSE file.
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_centerVertical="true">
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginEnd="16dp">
|
||||
|
||||
<org.chromium.ui.widget.ChromeImageView
|
||||
android:id="@android:id/icon"
|
||||
@ -45,7 +46,6 @@ found in the LICENSE file.
|
||||
<RelativeLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_toEndOf="@id/icon_frame"
|
||||
android:layout_toStartOf="@id/checkable_image_view"
|
||||
@ -78,7 +78,7 @@ found in the LICENSE file.
|
||||
android:layout_height="32dp"
|
||||
android:scaleType="center"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_centerVertical="true"/>
|
||||
android:layout_alignParentTop="true"/>
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
|
Reference in New Issue
Block a user