android启动时应用程序渐变效果

来源:互联网 发布:js offsetheight 编辑:程序博客网 时间:2024/05/21 13:57

 这是在学习ImageView用到的.

import 略....

 

ImageView iv=(ImageView)this.findViewById(R.id./*你的资源背景图片*/);
  AlphaAnimation aa=new AlphaAnimation(0.1f,1.0f);
  aa.setDuration(10000);
  iv.startAnimation(aa);
  aa.setAnimationListener(new AnimationListener()
  {

   @Override
   public void onAnimationEnd(Animation arg0) {
    // TODO Auto-generated method stub
    Intent it=new Intent(Logo.this,MyLockScreen.class);
    startActivity(it);
    finish();
   }

   @Override
   public void onAnimationRepeat(Animation animation) {
    // TODO Auto-generated method stub
    
   }

   @Override
   public void onAnimationStart(Animation animation) {
    // TODO Auto-generated method stub
    
   }

原创粉丝点击