Support the lottie image file for the banner in Accessibility Settings.
Action: Currently, the ImageView component couldn’t handle the lottie image from raw resource folder, so temporarily using the LottieAnimationView from settingsLib to support lottie image for the banner of Accessibility settings. Bug: 186065724 Bug: 179451422 Test: atest AnimatedImagePreferenceTest Change-Id: I99fb2ed26085c73bc262c58001de8dec3078e1d0
This commit is contained in:
@@ -31,4 +31,14 @@
|
||||
android:focusable="false"
|
||||
android:clickable="false"
|
||||
android:adjustViewBounds="true"/>
|
||||
|
||||
<com.airbnb.lottie.LottieAnimationView
|
||||
android:id="@+id/lottie_view"
|
||||
android:layout_width="412dp"
|
||||
android:layout_height="300dp"
|
||||
android:layout_gravity="center"
|
||||
android:background="@drawable/protection_background"
|
||||
android:scaleType="fitCenter"
|
||||
android:adjustViewBounds="true"
|
||||
android:clipToOutline="true"/>
|
||||
</FrameLayout>
|
||||
Reference in New Issue
Block a user