android给背景图加移动的动画

 private void initBackGroundView() {
       ImageView  mImageView = (ImageView) findViewById(R.id.de_img_backgroud);
        new Handler().postDelayed(new Runnable() {
           @Override
           public void run() {
               Animation animation = AnimationUtils.loadAnimation(LoginActivity.this, R.anim.translate_anim);
               mImageView.startAnimation(animation);
           }
}, 3000);
    }
translate_anim 

 



    
    


 

你可能感兴趣的:(android给背景图加移动的动画)