带有图标的 Android 弹出菜单(类似于 Google Map 应用程序版本 6) [英] Android pop-up menu with icons (similar to Google Map app version 6)
问题描述
有谁知道Android版谷歌地图官方应用新版本6中的菜单使用了什么组件?
我正在尝试构建一个类似的菜单,在官方开发页面中找不到任何内容(注意:我的目标是 Gingerbread API,可能具有高达 1.6 的向后兼容性.)
这是我找到的有关此菜单的唯一图片(这是在 ICS 上,但在 Gingerbread 上显示了类似的内容).请在此处查看左侧屏幕截图(来自
如果没有内置组件,你会采用什么方法来构建一个?
最坏的情况是,如果 Android 2.x 不存在这样的组件,您是否知道 Google Map 应用程序本身是否开源,以及在哪里可以找到其源代码?
只需查看以下链接.有一个很好的快速操作对话框示例.因此您可以根据需要修改代码.
http://www.londatiga.net/it/how-to-create-quickaction-dialog-in-android/
Does anyone know what component is used for the menu in the new version 6 of Google Map’s official app on Android?
I’m trying to build a menu similar to that, couldn’t find anything in the official dev pages (Note: I’m targeting Gingerbread APIs, possibly with backward compatibility up to 1.6.)
Here is the only picture I found of this menu (this is on ICS, but something similar is displayed on Gingerbread). Please have a look at the left screenshot here (from the Gizmodo site):
If there’s no built-in component, what approach would you follow to build one?
At worst, if no such component exist for Android 2.x, do you know whether the Google Map application itself is open-source, and where to find its source?
Just look into following link. There is an good examples of Quick Action dialog.So you can modify the code for whatever you want.
http://www.londatiga.net/it/how-to-create-quickaction-dialog-in-android/
这篇关于带有图标的 Android 弹出菜单(类似于 Google Map 应用程序版本 6)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!