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

}

更多相关文章

  1. Android开发相关工具等资源快速查找地址
  2. Android开发资源推荐第2季
  3. 资源管理问题汇总
  4. android studio gradle依赖库使用国内资源
  5. android中实现背景图片颜色渐变方法
  6. Android TextView带背景图片和自定义边框

随机推荐

  1. android开启Wifi AP
  2. Android(安卓)listview--checkbox
  3. Activity相关工具类
  4. Android(安卓)中的 AndroidManifest.xml
  5. debian linux android ndk compile env s
  6. Android中使用shape定义空心圆和实心圆
  7. Android:方向传感器
  8. android studio recyclerview长按删除
  9. 自定义HttpURLConnection工具类
  10. Android(安卓)getMeasuredHeight()与getH