补间动画TweenAnimation
作者:
吃葡萄皮不吐葡萄 | 来源:发表于
2016-05-20 12:17 被阅读31次
补间动画官方文档1
补间动画官方文档2
ImageView flower = (ImageView) findViewById(R.id.flower);
Button btn = (Button)findViewById(R.id.btn);
final Handler handler = new Handler(){
public void handleMessage(Message msg){
if (msg.what == 0x123){
flower.startAnimation(reverse);
}
}
};
bn.setOnClickListener(new OnClickListener(){
public void onClick(View view){
flower.startAnimation(anim);
new Timer().schedule(new TimerTask(){
public void run(){
handler.sendEmptyMessage(0x123);
}
},3500);
}
};
本文标题:补间动画TweenAnimation
本文链接:https://www.haomeiwen.com/subject/btlnrttx.html
网友评论