1.准备一张图片命名为b2
2.建立activity_splash.xml的布局文件
<ImageView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/b2"
android:scaleType="fitCenter"/>
以上代码不能去掉手机的标题栏和信息栏
3.在JAVA中实现全屏和等待3秒进入主界面MainActivity
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.Window;
import android.view.WindowManager;
public class SplashActivity extends Activity {
private static final long SPLASH_DELAY_MILLIS = 3000;
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);