I'm doing an home screen widget for android and I want to use a Lottie animation on the widget. I know the LottieAnimationView
is not supported as the widget only supports some views. But can I use this custom drawable LottieDrawable to use in an ImageView on the widget?
No, sorry. You can only use drawable resources or bitmaps, not a Drawable
object.
While your app has Lottie, your app is not rendering the app widget. The home screen renders the app widget. Hence, the RemoteViews
system limits you to things that are part of the framework, that any home screen will be able to use.