commit | dd1e66c199f5345febba4536df2adaa76ec782a9 | [log] [tgz] |
---|---|---|
author | PETER LIANG <peterliang@google.com> | Thu May 07 16:11:22 2020 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Thu May 07 16:11:22 2020 +0000 |
tree | 57aabdc84ad2b2de8f50959c7c0fb49107a2c275 | |
parent | 64097cbb11ca0262b4322d9769548f15618f616c [diff] | |
parent | a87a7009b0e1d0bc8ae04a780fd013eba5a54d1c [diff] |
Merge "Refines the animated image to fit the screen display." into rvc-dev
diff --git a/res/layout/preference_animated_image.xml b/res/layout/preference_animated_image.xml index 305b036..e7d9b52 100644 --- a/res/layout/preference_animated_image.xml +++ b/res/layout/preference_animated_image.xml
@@ -24,9 +24,10 @@ <ImageView android:id="@+id/animated_img" - android:layout_width="wrap_content" + android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center" + android:scaleType="fitCenter" android:focusable="false" android:clickable="false" android:adjustViewBounds="true"/>
diff --git a/src/com/android/settings/accessibility/AnimatedImagePreference.java b/src/com/android/settings/accessibility/AnimatedImagePreference.java index 61e439f..2ca13f3 100644 --- a/src/com/android/settings/accessibility/AnimatedImagePreference.java +++ b/src/com/android/settings/accessibility/AnimatedImagePreference.java
@@ -60,7 +60,7 @@ } if (mMaxHeight > -1) { - imageView.setMaxWidth(mMaxHeight); + imageView.setMaxHeight(mMaxHeight); } }