Fine tune the maganication area edit dialog

Root cause: The asset is not rectangle, it is high > width asset. Called the centerCrop cause the both dimensions (width and height) of the image will be equal to or larger than the corresponding dimension of the view (minus padding).
Solution: Change to fitCenter.

Bug: 146473544
Test: local test
Change-Id: I17de6a09f21e1454afcdd0297b81868c1b819de1
This commit is contained in:
menghanli
2020-04-14 14:57:11 +08:00
committed by Menghan Li
parent 6585f79439
commit 28243367df
2 changed files with 11 additions and 4 deletions

View File

@@ -28,12 +28,19 @@
android:padding="24dp">
<TextView
style="@style/AccessibilityDialogDescription"
android:text="@string/accessibility_magnification_area_settings_message" />
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/accessibility_magnification_area_settings_message"
android:textAppearance="?android:attr/textAppearanceListItemSecondary"
android:textColor="?android:attr/textColorSecondary"
android:layout_marginBottom="24dp"/>
<include
android:id="@+id/magnify_full_screen"
layout="@layout/accessibility_edit_shortcut_component" />
layout="@layout/accessibility_edit_shortcut_component"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="32dp" />
<include
android:id="@+id/magnify_window_screen"

View File

@@ -57,6 +57,6 @@
android:layout_width="176dp"
android:layout_height="176dp"
android:layout_marginStart="44dp"
android:scaleType="centerCrop" />
android:scaleType="fitCenter" />
</LinearLayout>