安卓快速启动页可加特效
来源:互联网 发布:上海交通大学学报知乎 编辑:程序博客网 时间:2024/06/05 09:28
package com.dodi.app.activity;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.Window;
import com.example.wanmengapp.R;
public class Guide extends Activity {
private static final long SPLASH_DELAY_MILLIS = 3000;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
setContentView(R.layout.guide);
// 使用Handler的postDelayed方法,3秒后执行跳转到MainActivity
Handler x = new Handler();
x.postDelayed(new splashhandler(), 1200);
}
class splashhandler implements Runnable {
public void run() {
in();
}
}
@SuppressWarnings("static-access")
public void in() {
startActivity(new Intent(getApplication(),MainActivity.class));
Guide.this.finish();
}
}
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.Window;
import com.example.wanmengapp.R;
public class Guide extends Activity {
private static final long SPLASH_DELAY_MILLIS = 3000;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
setContentView(R.layout.guide);
// 使用Handler的postDelayed方法,3秒后执行跳转到MainActivity
Handler x = new Handler();
x.postDelayed(new splashhandler(), 1200);
}
class splashhandler implements Runnable {
public void run() {
in();
}
}
@SuppressWarnings("static-access")
public void in() {
startActivity(new Intent(getApplication(),MainActivity.class));
Guide.this.finish();
}
}
0 0
- 安卓快速启动页可加特效
- 快速启动 安卓模拟器
- 如何快速启动安卓模拟器
- 安卓特效
- 安卓 coordination 等各种特效
- 安卓 单击按钮出现水纹特效
- 安卓自定义控件_视差特效
- 安卓启动流程
- 安卓启动流程
- 安卓启动流程
- 启动安卓模拟器
- 安卓启动APP
- 安卓启动流程
- 安卓启动页
- 安卓之启动
- 安卓屏幕宽高分辨率和多次快速点击导致启动多个Activity问题
- 快速解决ionic安卓主题启动时短暂的黑屏或白屏问题
- 安卓开发-安卓启动过程
- Codeforces Round #272 (Div. 2) A Dreamoon and Stairs(水)
- mysql字符集(character set)
- selenium 实现爬虫
- Android性能优化——数据结构的优化
- Mybatis整合Spring
- 安卓快速启动页可加特效
- 第三期 约定 《路由器就是开发板》
- Android性能优化——Layout的优化
- 《解读基金》摘录
- 混合模式程序集是针对“v2.0.50727”版的运行时生成的,在没有配置其他信息的情况下,无法在 4.0 运行时中加载该程序集
- Codeforces Round #272 (Div. 2) B Dreamoon and WiFi(简单DP)
- 他蹲冤狱、斗王石,公司干破产,“死”过好几回,却活出最精彩人生
- 如何编译Linux内核
- RecyclerView