今天我们用AndroidStudio开发软件写一个移动应用app上面的主界面上的切换按钮,看下面的代码:
<?xml version="1.0" encoding="utf-8"?>
<?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">
<!--子页面的容器-->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:background="@color/colorAccent12"/>
<!--底部切换按钮-->
<RadioGroup
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="10dp"
andro