|
|
@@ -12,6 +12,8 @@ import androidx.appcompat.app.AppCompatActivity;
|
|
|
import com.miekir.common.utils.ViewTool;
|
|
|
import com.miekir.mvp.widget.LoadingView;
|
|
|
|
|
|
+import me.jessyan.autosize.AutoSizeConfig;
|
|
|
+
|
|
|
/**
|
|
|
* 适配器模式,这个类会适配子类的功能,帮子类实现具体的弹出加载框、弹出提示等基本操作
|
|
|
*/
|
|
|
@@ -27,11 +29,14 @@ public abstract class BaseActivity extends AppCompatActivity {
|
|
|
|
|
|
@Override
|
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
|
+ // 系统调节字体大小不影响本APP,必须放到super.onCreate前面
|
|
|
+ AutoSizeConfig.getInstance().setExcludeFontScale(true);
|
|
|
// 状态栏深色模式,改变状态栏文字颜色
|
|
|
//if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
|
|
|
// getWindow().getDecorView().setSystemUiVisibility( View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN|View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
|
|
|
//}
|
|
|
super.onCreate(savedInstanceState);
|
|
|
+
|
|
|
rootView = LayoutInflater.from(this).inflate(getLayoutId(), null);
|
|
|
setContentView(rootView);
|
|
|
|