content: package com.taobao.splashscreen;
  
  import android.content.Intent;
  import android.os.Bundle;
  import android.support.v7.app.AppCompatActivity;
  import android.view.View;
  
  /**
   * An example full-screen activity that shows and hides the system UI (i.e.
   * status bar and navigation/system bar) with user interaction.
   */
  public class WelcomeActivity extends AppCompatActivity {
  
      private View mContentView;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
  
          setContentView(R.layout.activity_welcome);
  
          mContentView = findViewById(R.id.fullscreen_content);
  
  
          mContentView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE
                  | View.SYSTEM_UI_FLAG_FULLSCREEN
                  | View.SYSTEM_UI_FLAG_LAYOUT_STABLE
                  | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY
                  | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
                  | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);
  
          mContentView.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View view) {
  //                toggle();
              }
          });
  
      }
  
      @Override
      protected void onPostCreate(Bundle savedInstanceState) {
          super.onPostCreate(savedInstanceState);
  
          mContentView.postDelayed(new Runnable() {
              @Override
              public void run() {
                  Intent intent = new Intent();
                  intent.setClassName(getBaseContext(),"com.taobao.demo.MainActivity");
                  startActivity(intent);
                  finish();
                  overridePendingTransition(-1,android.R.anim.slide_out_right);
              }
          },3000);
      }
  
  
  }
  