android启动时应用程序渐变效果
16lz
2021-01-23
这是在学习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
}
更多相关文章
- Android开发相关工具等资源快速查找地址
- Android开发资源推荐第2季
- 资源管理问题汇总
- android studio gradle依赖库使用国内资源
- android中实现背景图片颜色渐变方法
- Android TextView带背景图片和自定义边框