嵌套1

来源:互联网 发布:淘宝已买的宝贝在哪找 编辑:程序博客网 时间:2024/05/18 01:05
<?xml version="1.0" encoding="utf-8"?><android.support.v4.widget.DrawerLayout 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:id="@+id/drawerLayout"    tools:context="com.example.lianxi.MainActivity">    <RelativeLayout        android:layout_width="match_parent"        android:layout_height="match_parent">        <RadioGroup            android:id="@+id/group"            android:layout_width="match_parent"            android:layout_height="wrap_content"            android:orientation="horizontal"            android:layout_alignParentBottom="true"            >            <RadioButton                android:id="@+id/but1"                android:layout_width="0dp"                android:layout_height="wrap_content"                android:layout_weight="1"                android:button="@null"                android:background="@drawable/radiobutton_selector"                android:text="第一页"                android:gravity="center"                />            <RadioButton                android:id="@+id/but2"                android:layout_width="0dp"                android:layout_height="wrap_content"                android:layout_weight="1"                android:button="@null"                android:background="@drawable/radiobutton_selector"                android:text="第二页"                android:gravity="center"                />            <RadioButton                android:id="@+id/but3"                android:layout_width="0dp"                android:layout_height="wrap_content"                android:layout_weight="1"                android:button="@null"                android:background="@drawable/radiobutton_selector"                android:text="第三页"                android:gravity="center"/>        </RadioGroup>        <FrameLayout            android:id="@+id/fl_main"            android:layout_width="match_parent"            android:layout_height="match_parent"            android:layout_above="@+id/group"            ></FrameLayout>    </RelativeLayout>    <LinearLayout        android:id="@+id/cll"        android:layout_width="300dp"        android:layout_height="match_parent"        android:orientation="vertical"        android:layout_gravity="left"        android:choiceMode="singleChoice"        android:background="#fe0"        >        <ImageView            android:id="@+id/img"            android:layout_width="wrap_content"            android:layout_height="wrap_content"            android:layout_gravity="center"            android:src="@mipmap/ic_launcher" />        <ListView            android:id="@+id/lv"            android:layout_width="match_parent"            android:layout_height="match_parent"            android:layout_below="@id/img"            android:layout_gravity="center"            android:layout_marginTop="20dp"></ListView>    </LinearLayout></android.support.v4.widget.DrawerLayout>
frag1
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"    xmlns:tools="http://schemas.android.com/tools"    android:layout_width="match_parent"    android:layout_height="match_parent"    android:orientation="vertical">    <android.support.v4.view.ViewPager        android:id="@+id/viewpager"        android:layout_width="match_parent"        android:layout_height="match_parent"/></LinearLayout>
frag2
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"    xmlns:tools="http://schemas.android.com/tools"    android:layout_width="match_parent"    android:layout_height="match_parent"    android:background="@color/colorPrimary"    android:orientation="vertical">    <com.bawei.wzq.wzlibrary.view.XListView        android:id="@+id/xlv"        android:layout_width="match_parent"        android:layout_height="match_parent">    </com.bawei.wzq.wzlibrary.view.XListView></LinearLayout>

listview
<?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"    android:layout_width="match_parent"    android:layout_height="match_parent">    <ImageView        android:id="@+id/imageView"        android:layout_width="wrap_content"        android:layout_height="wrap_content"        android:layout_weight="1"        app:srcCompat="@mipmap/ic_launcher" />    <TextView        android:id="@+id/textView"        android:layout_width="wrap_content"        android:layout_height="wrap_content"        android:layout_weight="1"        android:text="TextView" /></LinearLayout>


原创粉丝点击