package com.moral.yunfushao.activity;
|
|
import android.content.Intent;
|
import android.os.Bundle;
|
import android.view.View;
|
|
import com.moral.andbrickslib.utils.StatusBarUtil;
|
import com.moral.yunfushao.R;
|
import com.moral.yunfushao.base.BaseActivity;
|
|
|
/**
|
* Created by haijiang on 2017/2/20.
|
*/
|
|
public class SplashActivity extends BaseActivity implements Runnable {
|
|
@Override
|
protected void onCreate(Bundle savedInstanceState) {
|
super.onCreate(savedInstanceState);
|
StatusBarUtil.setStatusBarDrawable(SplashActivity.this, R.drawable.trans_rect_bg);
|
}
|
|
@Override
|
protected void getBundleExtras(Bundle extras) {
|
|
}
|
|
@Override
|
protected int getLayoutId() {
|
return R.layout.ac_splash_layout;
|
}
|
|
@Override
|
protected void initViews() {
|
Thread delayThread = new Thread(this);
|
delayThread.start();
|
}
|
|
@Override
|
protected void initListener() {
|
|
}
|
|
@Override
|
protected void initData() {
|
|
}
|
|
@Override
|
protected void processClick(View view) {
|
|
}
|
|
@Override
|
public void onClick(View v) {
|
|
}
|
|
@Override
|
protected void onErrorPageClick() {
|
|
}
|
|
@Override
|
protected void onStop() {
|
super.onStop();
|
finish();
|
}
|
|
@Override
|
public void run() {
|
try {
|
Thread.sleep(2000);
|
} catch (InterruptedException e) {
|
e.printStackTrace();
|
}
|
Intent intent = new Intent(this, LoginActivity.class);
|
startActivity(intent);
|
}
|
}
|