传播事件几层Android版Google Maps [英] Propagate events in several layers android google maps

查看:133
本文介绍了传播事件几层Android版Google Maps的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在开发Android 1.6基于谷歌地图的应用程序。

I'm developing a google maps based application for android 1.6.

我的问题是,在我的应用我有一个从地图ItemizedOverlay重新presenting信息延伸超过一层。

My problem is that in my application I have more than one layer that extends from ItemizedOverlay representing information in the map.

的问题是,所有的层实现的onTap方法,但现在只有最后一层(在堆栈的顶部)检测该轻敲事件,所以如果用户点上即在更深的项的方法的项从来没有的onTap火灾。

The problem is that all the layers implement the onTap method, but now only the last layer (on the top of the stack) detects the tap event, so If the user taps on an item that is in a deeper item the method onTap never fires.

有没有办法将事件传播到更深的层次?

Is there any way to propagate the event to deeper layers?

推荐答案

由于Android 2.0固定的,这是一些手机,包括我的一个已知的问题(MyTouch3G)

Fixed since android 2.0, it was a known issue of some phones including mine (MyTouch3G)

这篇关于传播事件几层Android版Google Maps的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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