就是说,在mainContent中替换掉整个的mainLinearLayout,请问该怎么操作?我试了replace方法不行
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/mainLinearLayout"
android:layout_width="match_parent"
android:fitsSystemWindows="true"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".MainActivity">
android:id="@+id/mainContent"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1" />
android:id="@+id/tabHost"
android:layout_width="match_parent"
android:layout_height="wrap_content">
android:id="@+id/tabContent"
android:layout_width="0dp"
android:layout_height="0dp" />