Merge "Replace the fixed size values with the new dimen resources." into sc-dev

This commit is contained in:
PETER LIANG
2021-06-14 02:55:07 +00:00
committed by Android (Google) Code Review
2 changed files with 7 additions and 4 deletions

View File

@@ -25,7 +25,7 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="300dp"
android:layout_height="@dimen/settingslib_illustration_height"
android:layout_gravity="center"
android:gravity="center_vertical"
android:padding="@dimen/settingslib_illustration_padding"
@@ -33,7 +33,7 @@
<com.airbnb.lottie.LottieAnimationView
android:id="@+id/lottie_view"
android:adjustViewBounds="true"
android:maxWidth="412dp"
android:maxWidth="@dimen/settingslib_illustration_width"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="center"
@@ -44,8 +44,8 @@
<FrameLayout
android:id="@+id/middleground_layout"
android:layout_width="412dp"
android:layout_height="300dp"
android:layout_width="@dimen/settingslib_illustration_width"
android:layout_height="@dimen/settingslib_illustration_height"
android:padding="@dimen/settingslib_illustration_padding"
android:background="@android:color/transparent"
android:layout_gravity="center"

View File

@@ -18,4 +18,7 @@
<resources>
<!-- Padding of illustration -->
<dimen name="settingslib_illustration_padding">12dp</dimen>
<dimen name="settingslib_illustration_width">412dp</dimen>
<dimen name="settingslib_illustration_height">300dp</dimen>
</resources>