Fix that the padding top/bottom of the preview was wrong when display size is smallest.

Add the padding from settingslib into.

Bug: 241247826
Test: manual test
Change-Id: Ia5f72bc6d6591a6245e623a10bdd3656935a38c4
This commit is contained in:
Peter Liang
2022-08-04 00:21:22 +08:00
parent ab8624c6ef
commit 5d4f28d65a

View File

@@ -18,6 +18,7 @@
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingVertical="@dimen/settingslib_illustration_padding"
android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
android:paddingStart="?android:attr/listPreferredItemPaddingStart">