xml布局侧拉菜单
来源:互联网 发布:优芽微课制作软件 编辑:程序博客网 时间:2024/05/16 18:15
<?xml version="1.0" encoding="utf-8"?><android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/drawerlayout" android:layout_width="match_parent" android:layout_height="match_parent" > <RelativeLayout android:id="@+id/fragment_layout" android:layout_width="match_parent" android:layout_height="match_parent" > <RelativeLayout android:id="@+id/title_bar" android:layout_width="match_parent" android:layout_height="48dp" android:background="#63B8FF" > <ImageView android:id="@+id/leftmenu" android:layout_width="48dp" android:layout_height="48dp" android:padding="12dp" android:onClick="leftmenu" android:src="@mipmap/ic_launcher" /> <TextView android:layout_width="wrap_content" android:layout_height="48dp" android:layout_centerInParent="true" android:gravity="center" android:text="侧拉菜单+夜间模式" /> <ImageView android:id="@+id/rightmenu" android:layout_width="48dp" android:layout_height="48dp" android:layout_alignParentRight="true" android:padding="12dp" android:src="@mipmap/ic_launcher" /> </RelativeLayout> <LinearLayout android:id="@+id/content" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_below="@id/title_bar" android:orientation="vertical" /> </RelativeLayout> <RelativeLayout android:id="@+id/left" android:layout_width="200dp" android:layout_height="match_parent" android:layout_gravity="left" android:background="@android:color/white" > <Switch android:id="@+id/left_but" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="夜间模式" android:background="#00ff00" android:textOff="关" android:textOn="开" /> </RelativeLayout></android.support.v4.widget.DrawerLayout>
阅读全文
0 0
- xml布局侧拉菜单
- 侧拉菜单加Fragment布局
- 使用xml布局菜单
- 网页布局二之下拉菜单
- ios侧拉菜单
- 63.侧拉菜单
- SlidingMenu侧拉菜单
- 侧拉菜单
- 侧拉菜单
- SlidingPaneLayout:侧拉菜单
- slidingmenu侧拉菜单
- 侧拉新闻菜单
- 侧拉菜单
- 侧拉菜单
- 侧拉菜单显示
- 侧拉菜单
- 侧拉菜单
- 侧拉菜单
- git 使用经验
- printf的用法
- Java Calendar类详解
- mongo教程-修改器
- js学习入门篇之知识笔记
- xml布局侧拉菜单
- idea2017激活
- TD62083、TD62783 8通道达林顿型驱动芯片对比
- cocopods 里面第三方头文件找不到
- Android实现模拟登陆教务系统并解析网页数据
- Maven Spring BOM (bill of materials)
- Spring Security权限报错-java.lang.IllegalArgumentException: Failed to evaluate expression ‘ROLE_USER’
- java TCP/IP Socket编程-----进阶--多线程-----笔记8
- 一、统计学的基本概念