第一个综合题布局

来源:互联网 发布:淘宝标题优化技巧步骤 编辑:程序博客网 时间:2024/04/29 22:05

<?xml version="1.0" encoding="utf-8"?>



    <android.support.v4.widget.DrawerLayout

        android:layout_width="match_parent"

        android:layout_height="match_parent"

        xmlns:android="http://schemas.android.com/apk/res/android"

        android:id="@+id/mydrawer">



    <!--菜单内容-->

    <RelativeLayout

        android:layout_width="230dp"

        android:layout_height="match_parent"

        android:layout_gravity="start"

        android:background="#00f">




    </RelativeLayout>


    <!--主内容-->

    <RelativeLayout

        android:layout_width="match_parent"

        android:layout_height="match_parent">





        <RadioGroup

            android:layout_width="match_parent"

            android:layout_height="wrap_content"

            android:orientation="horizontal"

            android:layout_alignParentBottom="true"

            android:id="@+id/rg">

            <RadioButton

                android:layout_width="0dp"

                android:layout_height="wrap_content"

                android:id="@+id/rb_index"

                android:checked="true"

                android:layout_weight="1"

                android:text="首页"

                android:button="@null"

                android:gravity="center"/>



            <RadioButton

                android:layout_width="0dp"

                android:layout_height="wrap_content"

                android:id="@+id/rb_mind"

                android:layout_weight="1"

android:gravity="center"

                android:text="想法"

                android:button="@null"/>


        </RadioGroup>

        <FrameLayout

            android:layout_width="match_parent"

            android:layout_height="match_parent"

            android:id="@+id/fcontent"

            android:layout_above="@+id/rg"

            >


        </FrameLayout>



    </RelativeLayout>


    </android.support.v4.widget.DrawerLayout>


原创粉丝点击