I use the MVVM pattern. In XML, I have a View that needs to be animated depending on the ViewModel change. Does anyone have any examples? PS There are no problems with changing parameters such as text, button colors, etc. But it’s not clear how to invoke View animation using DataBinding

I tried to create my own BindingAdapter, with an interface, but the animation was played once.

  • I was embarrassed "the animation was played once." An animation always warms up 1 time, without saving the final state. Then you need to restart it. MB you have a problem directly with the animation itself, and not the organization of the playback of animation? - Georgy Chebotarev
  • Damn, right, thank you. Did not restart the animation. - alex11

0