关于欢迎界面自动转换

【bug-fixed-note】
删除ImageView监听器,替换为延时自动切换

使用了Splash窗口类,在styles.xml中定义主题

 private final int SPLASH_LENGHT = 2000;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        setTheme(R.style.Theme_AppCompat_Light_DarkActionBar);
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_welcome);


        //imageView = (ImageView) findViewById(R.id.welcome_stuff);
        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
                Intent mainIntent = new Intent(WelcomeActivity.this,Activity_login.class);
                WelcomeActivity.this.startActivity(mainIntent);
                WelcomeActivity.this.finish();
            }
        },SPLASH_LENGHT);