这是在学习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
}