android app启动动画是怎样制作的?
1个回答
展开全部
private Handler mHandler = new Handler();
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Intent intent = getIntent();
setContentView(R.layout.activity_welcome);
mHandler.postDelayed(new Runnable() {
@Override
public void run() {
startAndFinishThis();
}
}, 2500);
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Intent intent = getIntent();
setContentView(R.layout.activity_welcome);
mHandler.postDelayed(new Runnable() {
@Override
public void run() {
startAndFinishThis();
}
}, 2500);
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询