airbnb / lottie-android

Render After Effects animations natively on Android and iOS, Web, and React Native
http://airbnb.io/lottie/
Apache License 2.0
35.03k stars 5.41k forks source link

Support setter for Layer.hidden #2419

Closed eduard-mishustin closed 11 months ago

eduard-mishustin commented 11 months ago

Is your feature request related to a problem? Please describe. I'm always frustrated when I need to use java reflection to set Layer.hidden value.

Describe the solution you'd like Make Layer.hidden value setter is public.

Describe alternatives you've considered Somehow create the ability to change the visibility of the layer. Maybe create an api similar to TextDelegate.

Additional context This is an analogue of the setNodeIsEnabled function in iOS.

gpeal commented 11 months ago

Could you use a dynamic property to set the opacity to 0?

eduard-mishustin commented 11 months ago

Yes, I saw it, I can, thank you. But of course it's not as convenient as just changing visibility