DrawerLayout侧滑布局点击不响应事件
来源:互联网 发布:true key 是什么软件 编辑:程序博客网 时间:2024/05/29 06:28
drawerlayout必须放在主界面布局后面
google的api是这样写的:
To use a DrawerLayout, position your primary content view as the first child with a width and height of match_parent. Add drawers as child views after the main content view and set the layout_gravity appropriately. Drawers commonly use match_parent for height with a fixed width.
布局这么写就OK了
<android.support.v4.widget.DrawerLayout android:id="@+id/contact_drawer_layout" android:layout_width="match_parent" android:layout_height="match_parent"> <!-- The navigation drawer --> <include android:layout_width="match_parent" android:layout_height="match_parent" layout="@layout/activity_contact_list_center"/> <!--侧滑布局--> <include android:id="@+id/contact_list_side" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_gravity="start" layout="@layout/activity_contact_list_side"/> </android.support.v4.widget.DrawerLayout>
阅读全文
0 0
- DrawerLayout侧滑布局点击不响应事件
- DrawerLayout侧滑布局点击不响应事件
- 关于使用DrawerLayout建立侧滑菜单时,下层布局依然可响应点击事件的解决方法
- 关于使用DrawerLayout建立侧滑菜单时,下层布局依然可响应点击事件的解决方法
- DrawerLayout侧滑栏不响应点击事件
- framelayout 两布局重叠,下层不响应点击事件
- ListView点击事件不响应。
- 关于Android DrawerLayout的侧滑菜单的点击事件
- DrawerLayout抽屉布局item点击事件失效原因之一
- 解决父布局具有点击效果,但是子布局的Button不响应点击事件的问题
- DrawerLayout 点击事件穿透
- DrawerLayout 点击穿透事件
- DrawerLayout 的点击事件
- GridView 设置setOnItemClickListener点击事件不响应
- GridView 设置setOnItemClickListener点击事件不响应
- TextView点击事件不响应解决办法
- ListView Item点击事件无效,不响应
- iOS中按钮不响应点击事件
- pioneer 移动机器人实现平滑轨迹
- 券宝网 淘宝天猫优惠券网站(可直接做兼职)
- Tomcat优化
- 魂十司机攻略
- 注解@PostConstruct与@PreDestroy讲解及实例
- DrawerLayout侧滑布局点击不响应事件
- java中文乱码问题
- shape文件的生成与打包下载
- JEECMS——web.xml配置
- 餐巾计划问题
- Linux用户和用户组管理
- Lightoj1147【二进制表状态】
- package.json中的dependencies和devDependencies的区别
- 瑞芯微1——RK3288系统编译及环境搭建