使用Android的样品抽屉式导航错误 [英] Android Navigation Drawer bug using the sample

查看:127
本文介绍了使用Android的样品抽屉式导航错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想实现基于我的应用程序的抽屉式导航模式。我下载的样本code从这里,我跑它,90%的时代抽屉工程确定,但有时抽屉被卡住,当我尝试打开它。我有复制的情况的一种方式,但它并不总是奏效。我做的是:

I'm trying to implement the navigation drawer pattern based on my app. I downloaded the sample code from here and i ran it and 90 % of the times the drawer works ok, but sometimes the drawer gets stuck when i try to open it. I have a way of replicating the situation but it doesn't always work. What i do is:

1 - 运行示例code原样。
2-放在左边手指得到抽屉偷看
手指和preSS它的主要片段
3放手 4-尝试打开抽屉照常

1- Run the sample code as is.
2- Put your finger on the left edge to get the drawer peek
3- Let go of the finger and press it on the main fragment
4- Try to open the drawer as usual

有时候抽屉被卡住的观察模式,无论你多么轻扫手指打开抽屉更多的权利。有没有人有/修复了这个问题?

Sometimes the drawer gets stuck on the peek mode no matter how much you swipe your finger to the right to open the drawer more. Has anyone had / fixed this issue?

推荐答案

我面对所提到的,你有类似的问题。我有一个相对布局内的列表视图( FILL_PARENT )。只要在列表视图中的含量较少,当我拖着列表视图外的区域,导航抽屉得到来袭。设置机器人:可点击=真正的的相对布局解决了这个问题。希望这可以帮助。

I faced a similar issue as mentioned by you. I had a list view inside a relative layout (FILL_PARENT). Whenever the content in the list view is less and when I dragged in the area outside the list view, the navigation drawer got struck. Setting android:clickable="true" for the relative layout resolved the problem. Hope this may help.

这篇关于使用Android的样品抽屉式导航错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆