Android LogoActivity图片放大动画关闭

 //logo淡入淡出动画
        Drawable[] drawableArray = {
                getResources().getDrawable(R.drawable.logo_bg_begin),
                getResources().getDrawable(R.drawable.logo_bg_end)
        };
        mTransitionDrawable = new TransitionDrawable(drawableArray);
        mLogoBg.setImageDrawable(mTransitionDrawable);
        mTransitionDrawable.startTransition(1500);
        //logo缩放动画
        ScaleAnimation scaleAnimation=new ScaleAnimation(1.0f, 1.4f, 1.0f, 1.4f,
                Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f);//默认从(0,0)
        scaleAnimation.setDuration(3000);
        mLogoBg.startAnimation(scaleAnimation);

 

posted @ 2017-03-23 14:12  TeddyYan  阅读(739)  评论(0编辑  收藏  举报