Rotate an Imagewith Animation

前端 未结 6 1641
死守一世寂寞
死守一世寂寞 2021-02-01 04:23

\"The

What I Have

I have an arrow image (like the left one). Whe

6条回答
  •  盖世英雄少女心
    2021-02-01 04:47

    If I were you I'd use ViewPropertyAnimator (available from API 12). Its syntax is more straight forward IMO.
    Usage would be:

    toggle.animate().rotation(0.5f);
    

提交回复
热议问题