You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
LottieAnimationView provides the 3-arg view constructor, which allows passing a defStyleAttr from a subclass (e.g. MyLoadingSpinnerView), but doesn't use it.
This means that any LottieAnimationView-specific attributes will not be read from a default style.
Lottie is supported and developed on nights and weekends. Please consider sponsoring Lottie to prioritize this issue and help support this issue as well as future investments.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
LottieAnimationView
provides the 3-arg view constructor, which allows passing adefStyleAttr
from a subclass (e.g.MyLoadingSpinnerView
), but doesn't use it.This means that any
LottieAnimationView
-specific attributes will not be read from a default style.Describe the solution you'd like
Pass the
defStyleAttr
to theinit
function, and pass it when obtaining styled attributes:Describe alternatives you've considered
Applying the style explicitly in the layout every time:
Additional context
Happy to do a PR if this issue is accepted!
Lottie is supported and developed on nights and weekends. Please consider sponsoring Lottie to prioritize this issue and help support this issue as well as future investments.
The text was updated successfully, but these errors were encountered: