1. 程式人生 > >抽取基類BaseA

抽取基類BaseA

package com.example.li.lichao;

import android.os.Bundle;
import android.os.PersistableBundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

public abstract class BaseActivity extends AppCompatActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(getcon());
        initdate();
        initview();

    }

    protected abstract int getcon();


    protected abstract void initdate();

    protected abstract void initview();
}