设为首页 加入收藏

TOP

分享一个C布局(代码)
2018-07-04 08:54:16 】 浏览:202
Tags:分享 一个 布局 代码

分享一个C布局(代码)

<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout xmlns:android="https://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:id="@+id/drawer_layout"
    >
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical"
        >
        <FrameLayout
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="9"
            android:id="@+id/show_frame"
            />
        <RadioGroup
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="1"
            android:orientation="horizontal"
            android:id="@+id/show_rg"
            >
            <RadioButton
                android:text="棣栭〉"
                android:id="@+id/btn1"
                style="@style/myStyle"
                />
            <RadioButton
                android:text="鍒嗙被"
                android:id="@+id/btn2"
                style="@style/myStyle"
                />
            <RadioButton
                android:text="鎴戠殑"
                android:id="@+id/btn3"
                style="@style/myStyle"
                />
        </RadioGroup>
 
    </LinearLayout>
 
    <!--渚ф爮-->
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_gravity="start"
        android:background="#fff"
        android:orientation="vertical"
        >
        <ImageView
            android:layout_width="match_parent"
            android:layout_height="200dp"
            android:src="@drawable/header"
            android:id="@+id/nav_header"
            />
        <TextView
            android:layout_marginTop="21dp"
            android:layout_width="match_parent"
            android:layout_height="60dp"
            android:id="@+id/nav_goods"
            android:text="鍟嗗搧"
            android:layout_marginLeft="21dp"
            />
 
        <TextView
            android:id="@+id/nav_tuijian"
            android:layout_width="match_parent"
            android:layout_height="60dp"
            android:layout_marginLeft="21dp"
            android:text="鐬庢帹鑽? />
    </LinearLayout>
</android.support.v4.widget.DrawerLayout>
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇C语言动态内存分配代码实例 下一篇C语言二进制中1的个数(代码实例)

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目