Android Splash Screen,androidsplash,public class
分享于 点击 6427 次 点评:85
Android Splash Screen,androidsplash,public class
public class Splash extends Activity { @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); LayoutInflater inflater = getLayoutInflater(); View layout = inflater.inflate(R.layout.splashscreen, (ViewGroup) findViewById(R.id.splash)); Toast toast = new Toast(getApplicationContext()); toast.setGravity(Gravity.CENTER_VERTICAL, , ); toast.setDuration(Toast.LENGTH_LONG); toast.setView(layout); toast.show(); new Handler().post(new Runnable() { @Override public void run() { Splash.this.startActivity(new Intent(Splash.this, FrozenBubble.class);); Splash.this.finish(); } }); }}//该片段来自于http://byrx.net
用户点评