码迷,mamicode.com
首页 > 移动开发 > 详细

Android Animation ---TranslateAnimation

时间:2015-01-20 15:18:43      阅读:145      评论:0      收藏:0      [点我收藏+]

标签:

if(stopBtn.getVisibility()==View.VISIBLE){
                Animation animation_stop = new TranslateAnimation(
                        Animation.RELATIVE_TO_PARENT, 0.0f,Animation.RELATIVE_TO_PARENT, 0.0f,
                        Animation.RELATIVE_TO_PARENT, 0.0f,Animation.RELATIVE_TO_PARENT, 1.0f
                    );

                Animation animation_flage = new TranslateAnimation(
                          Animation.RELATIVE_TO_PARENT, 0.0f,Animation.RELATIVE_TO_PARENT, 0.0f,
                          Animation.RELATIVE_TO_PARENT, 0.0f,Animation.RELATIVE_TO_PARENT, 1.0f
                      );
                animation_stop.(1000);
                  stopBtn.startAnimation(animation_stop);
                  animation_flage.setDuration(500);
                flagBtn.startAnimation(animation_flage);
            }

 

Android Animation ---TranslateAnimation

标签:

原文地址:http://www.cnblogs.com/icgq/p/4236033.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!