标签:style http io ar 使用 sp java on div
经历过几次这样的问题了。设置好了动画之后,动画不执行。如下代码:
setFullScreen();
View view = LViewHelper.getView(R.layout.splash);
setContentView(R.layout.splash);
AlphaAnimation aa = new AlphaAnimation(0.1f, 1.0f);
aa.setDuration(2000);
view.startAnimation(aa);
aa.setAnimationListener(new AnimationListener() {
@Override
public void onAnimationStart(Animation animation) {
}
@Override
public void onAnimationRepeat(Animation animation) {
}
@Override
public void onAnimationEnd(Animation animation) {
startActivity(new Intent(SplashActivity.this, MainActivity.class));
finish();
}
});
setFullScreen();
View view = LViewHelper.getView(R.layout.splash);
setContentView(view);
AlphaAnimation aa = new AlphaAnimation(0.1f, 1.0f);
aa.setDuration(2000);
view.startAnimation(aa);
aa.setAnimationListener(new AnimationListener() {
@Override
public void onAnimationStart(Animation animation) {
}
@Override
public void onAnimationRepeat(Animation animation) {
}
@Override
public void onAnimationEnd(Animation animation) {
startActivity(new Intent(SplashActivity.this, MainActivity.class));
finish();
}
});
标签:style http io ar 使用 sp java on div
原文地址:http://www.cnblogs.com/linwoain/p/4150659.html