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);
相关文章
相关标签/搜索