在BaseActivity中加载如下的布局,将要显示的布局,和错误页面,异常页都作为子View添加进FrameLayout中,根据需要显示不同页面。
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">