一、mainActivity写布局----底部按钮。 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" tools:context="com.bwei.lenovo.day11_myapp.Activity.HomeActivity"> <FrameLayout android:id="@+id/home_frame" android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1"></FrameLayout> <RadioGroup android:id="@+id/home_rg" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal"> <RadioButton android:background="@drawable/home_seletor1" android:id="@+id/home_rb1" android
FrameLayout 加载 Fragment
最新推荐文章于 2024-05-24 02:46:53 发布