ADD file via upload

master
pybple5kv 3 years ago
parent 34994574e7
commit 92e6da17e0

@ -0,0 +1,49 @@
package com.example.activity;
import androidx.fragment.app.FragmentActivity;
import android.os.Bundle;
import butterknife.ButterKnife;
public abstract class BaseActivity extends FragmentActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(getLayoutId());
ButterKnife.bind(this);
getPreIntent();
initView();
initData();
initListener();
}
abstract int getLayoutId();
/**
* intent
*/
void getPreIntent() {
}
/**
* View
*/
void initView() {
}
/**
*
*/
void initData() {
}
/**
*
*/
void initListener() {
}
}
Loading…
Cancel
Save