微博开发第一讲 知识点--2014.04.23
1.)透明渐变动画
ImageView logo = (imageView) findViewById(R.id.image);
AlphaAnimation ani = new AlphaAnimation(0.0,1.0); //透明度从零到1变化
ani.setDuration(3000);//设置动画时长3秒
ani.setAnimationListener(new Animation(){
public void onAnimationStart(Animation ani){
//todo
}
public void onAnimationRepead(Animation ani){
//todo
}
// 动画完成后跳转到activityB
public void onAnimationEnd(Animation ani){
Intent intent = new Intent(Activity.this,activityB.class);
startActivity(intent);
}
})
2.)去掉标题和设置全屏
(1)java中实现
this.requestWindowFeature(Window.FEATURE_NO_TITLE);
this.getwindow().setFlags(WindowManager.Layoutparam.FLAG_FULLSCREEN,WindowManager.Layoutparam.FLAG_FULLSCREEN);
(2)主体实现style 省略不写了
logo.setAnimation(ani);//讲动画应用到logo的显示上