主布局 (侧拉)
来源:互联网 发布:虚拟机mac os x 10.10 编辑:程序博客网 时间:2024/06/04 00:45
<?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:id="@+id/main_Dl" android:layout_width="match_parent" android:layout_height="match_parent" tools:context="com.bwie.lizhi.text_1.MainActivity"> <LinearLayout android:id="@+id/main_ll" android:layout_width="200dp" android:layout_height="match_parent" android:layout_gravity="start" android:choiceMode="singleChoice" android:orientation="vertical"> <ImageView android:id="@+id/Draw_iv" android:layout_width="100dp" android:layout_height="100dp" android:layout_gravity="center" android:background="#ddd" /> <ListView android:id="@+id/Draw_lv" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginTop="10dp"></ListView> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <FrameLayout android:id="@+id/main_fl" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" /> <RadioGroup android:id="@+id/main_rg" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="9" android:orientation="horizontal"> <RadioButton android:id="@+id/main_rb1" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" android:button="@null" android:gravity="center" android:text="首页" /> <RadioButton android:id="@+id/main_rb2" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" android:button="@null" android:gravity="center" android:text="搜索" /> <RadioButton android:id="@+id/main_rb3" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" android:button="@null" android:gravity="center" android:text="知识库" /> <RadioButton android:id="@+id/main_rb4" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" android:button="@null" android:gravity="center" android:text="我的" /> </RadioGroup> </LinearLayout></android.support.v4.widget.DrawerLayout>
阅读全文
0 0
- 主布局 (侧拉)
- 抽屉布局(侧拉)
- Android 侧拉布局
- 侧拉布局
- android 自定义布局之侧拉布局
- xml布局侧拉菜单
- 手机侧拉页面布局
- 侧拉菜单加Fragment布局
- DrawerLayout的侧拉布局添加的权限
- 上拉,下拉的布局
- 上拉,下拉布局2
- 上拉,下拉,布局3
- 上拉,下拉布局4
- XRecyclerView如此so easy实现下拉刷新,上拉加载,添加头布局(头布局任意加)
- 侧拉——我的相册—权限。依赖。布局
- 侧拉——我的相册——基础布局逻辑
- 上拉刷新列表(自定义列表项布局)的实现
- 上拉加载&下拉刷新_布局文件(加载&刷新)
- Python lambda介绍
- 在windows下使用tensorbord
- 自定义View实现Android圆形图片
- Spring Cloud Hystrix: 控制stream推送频率
- android 高级之旅 (十七)FFmpeg移植android的崎岖路!
- 主布局 (侧拉)
- 求一维数组和二维数组的维度方法
- python操作数据库之读取数据库数据方法
- JavaScript-day11-个人学习笔记
- jQuery stop()用法
- 第一个Fragement布局
- java 避免不同库使用left join查询速率低效 采用 sql 注入foreach 遍历list查询方式
- Java基础练习-输出其中重复的字符、不重复的字符以及消除重复以后的字符列表
- java泛型