如何使用方向键在 MapView 上的 OverlayItems 之间移动焦点?
我有一个带有 ItemizedOverlay 的 MapView,其中包含许多 OverlayItems。
如何让用户使用方向键或光标键在这些 OverlayItems 之间切换焦点?目前,MapView 甚至从未获得焦点,突出显示仅在操作栏图标和缩放按钮之间移动。
如果这是可能的,用户是否仍然能够在滚动地图和在 OverlayItems 之间移动之间切换?也许,当您将焦点移至屏幕外的某个项目时,可以使地图滚动,以便该项目移至视图中。
我这样做是为了尝试从我的应用程序中删除对触摸屏的要求。这将提高它的可访问性并允许它在 Google TV 上使用。
I have a MapView with an ItemizedOverlay containing a number of OverlayItems.
How can I let the users to switch the focus between these OverlayItems using the d-pad or cursor keys? At the moment the MapView never even gets focus, the highlight just moves between the action bar icons and the zoom buttons.
If this is possible, would the user still be able to switch between scrolling the map and moving between OverlayItems? Possibly, the map could just be made to scroll as you move the focus to an item off the screen so the item is moved into view.
I'm doing this to try to remove the requirement for a touchscreen from my app. This will improve it's accessibility and allow it to be used on Google TV.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论