Update the preview background of the Caption and Style.

Add the background corner to be consistent with the Settings style.

Bug: 213453597
Test: manual test
Change-Id: Icf4526e13c81af9d8431304e04619d4add345aee
This commit is contained in:
Peter_Liang
2022-01-06 23:58:08 +08:00
parent b408e19f4e
commit b11381762e

View File

@@ -21,13 +21,17 @@
android:clipToPadding="true" android:clipToPadding="true"
android:clipChildren="true" android:clipChildren="true"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content"> android:layout_height="wrap_content"
android:paddingStart="?android:attr/listPreferredItemPaddingStart"
android:paddingEnd="?android:attr/listPreferredItemPaddingEnd">
<ImageView <ImageView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="@dimen/captioning_preview_height" android:layout_height="@dimen/captioning_preview_height"
android:contentDescription="@null" android:contentDescription="@null"
android:scaleType="centerCrop" android:scaleType="centerCrop"
android:clipToOutline="true"
android:background="@drawable/protection_background"
android:src="@drawable/caption_background"/> android:src="@drawable/caption_background"/>
<FrameLayout <FrameLayout