NineOldAndroids: set view pivot

后端 未结 2 483
心在旅途
心在旅途 2021-02-02 16:01

I\'m using the wonderful framework NineOldAndroids, but I can\'t find anything to set the pivot on my animated views. Specifically, I\'m trying to do a scaleX +

相关标签:
2条回答
  • 2021-02-02 16:21

    AnimatorProxy.wrap(...) didn't have any effect in my case. However, the following line did the trick:

    ViewHelper.setPivotY(myView, 0)
    
    0 讨论(0)
  • 2021-02-02 16:27

    Thanks to the author Jake Wharton, here is the solution:

    AnimatorProxy.wrap(myView).setPivotX(0);
    

    at any time, even after having called ObjectAnimator.start().

    0 讨论(0)
提交回复
热议问题