Android -> how to animate to the new position

后端 未结 3 1166
粉色の甜心
粉色の甜心 2021-02-02 15:58

Here is simple xml android animation:



        
3条回答
  •  感动是毒
    2021-02-02 16:34

    First, insert object in container that occupies entire screen. Then modify you animation xml like this

    
    

    You can also check this android API reference http://developer.android.com/guide/topics/resources/animation-resource.html#translate-element

    %p suffix translates element "in percentage relative to the parent size".

提交回复
热议问题