summaryrefslogtreecommitdiff
path: root/packages/SettingsLib/IllustrationPreference/res/layout/illustration_preference.xml
diff options
context:
space:
mode:
Diffstat (limited to 'packages/SettingsLib/IllustrationPreference/res/layout/illustration_preference.xml')
-rw-r--r--packages/SettingsLib/IllustrationPreference/res/layout/illustration_preference.xml22
1 files changed, 12 insertions, 10 deletions
diff --git a/packages/SettingsLib/IllustrationPreference/res/layout/illustration_preference.xml b/packages/SettingsLib/IllustrationPreference/res/layout/illustration_preference.xml
index efcd41c2778b..54145d60fb32 100644
--- a/packages/SettingsLib/IllustrationPreference/res/layout/illustration_preference.xml
+++ b/packages/SettingsLib/IllustrationPreference/res/layout/illustration_preference.xml
@@ -27,27 +27,29 @@
<FrameLayout
android:id="@+id/illustration_frame"
android:layout_width="wrap_content"
- android:layout_height="@dimen/settingslib_illustration_height"
+ android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center_vertical"
- android:padding="@dimen/settingslib_illustration_padding"
+ android:paddingHorizontal="@dimen/settingslib_illustration_padding"
android:orientation="vertical">
- <View
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@drawable/protection_background"/>
+ <ImageView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:scaleType="centerInside"
+ android:src="@drawable/protection_background"/>
<com.airbnb.lottie.LottieAnimationView
android:id="@+id/lottie_view"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
+ android:adjustViewBounds="true"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
android:layout_gravity="center" />
<FrameLayout
android:id="@+id/middleground_layout"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
android:background="@android:color/transparent"
android:layout_gravity="center"
android:visibility="gone"/>