No window to dispatch pointer action 0
来源:互联网 发布:淘宝申请退款客服介入 编辑:程序博客网 时间:2024/05/29 12:40
项目“Heal Your Body”
今天发现,所有button的点击事件都无法响应,连touch事件 也没有了,唉,痛苦啊,
logcat 提示:
09-05 15:12:47.229: WARN/WindowManager(59): No window to dispatch pointer action 0
09-05 15:12:47.343: WARN/WindowManager(59): No window to dispatch pointer action 1
solution:
http://www.eoeandroid.com/thread-52726-1-1.html
原来在baseActivity里:
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.TYPE_STATUS_BAR, WindowManager.LayoutParams.TYPE_STATUS_BAR); //症结所在
给window设置了一个特殊的flag后,如果这个flag的值太大,就会是触摸屏失去clickable
WindowManager.LayoutParams.TYPE_STATUS_BAR 的值为2000
需要改成1024以下:(WindowManager.LayoutParams.FLAG_FULLSCREEN的值为1024)
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
同样实现了全屏显示,但是又不会使触摸事件消失
- No window to dispatch pointer action 0
- no window to dispatch pointer action 终极解决方案
- Dispatch Action
- pointer to pointer vs. reference to pointer
- Pointer to Const & const pointer
- struts Action 方法分发dispatch
- Compiler Warning C4150: deletion of pointer to incomplete type 'XXX'; no destructor called
- Pointer to non-const type 'PLTexture*'with no explicit ownership错误,解决办法
- warning C4150: deletion of pointer to incomplete type 'xxx'; no destructor called 的解决办法
- 【Android开发bug】Dropping event due to no window focus
- pointer to member
- point to pointer
- Pointer to the function
- No configuration found for the specified action: '/sum' in namespace: ''.Form action defaulting to '
- No configuration found for the specified action: '' in namespace: ''. Form action defaulting to 'act
- Struts 1.x dispatch action 的处理
- No configuration found for the specified action: 'login' in namespace: ''. Form action defaulting to 'action' attribute's litera
- pointer to function and pointer to member function
- andriod 小技巧
- 同工科研究生谈谈如何做研究
- 编写netfilter模块 第三部分 Netfilter核心
- web前端获取JSON解决方案
- CSS样式02
- No window to dispatch pointer action 0
- 怪异问题 调试到位置(test dword ptr [eax],eax ; probe page.)局部数组变量定义所分配的最大空间为1M
- Redhat9 配置FTP
- 如何将String转成InputStream
- Linux内核模块传参
- 总结
- error LNK2001: unresolved external symbol "public: static ... 解决一法
- DOXYGEN简明实用教程
- onmouseover的想法