Does Phonegap supports native Android menu?

℡╲_俬逩灬. 提交于 2020-01-14 03:16:07

问题


Is there a workaround or a phonegap plugin using which its possible to create native contextual menu in Android? I'm not looking to inject/show HTML on menu press event, rather I'm looking for a native route to solve this problem.


回答1:


You can easily add a native menu to the class that extends DroidGap, just as you would any other activity, as DroidGap itself is just a child class of Activity.




回答2:


phonegap only loads an html page. then u can create anything on that html page using javascript and access the native things like camera, gallery tc using phonegap. You can create a page in native code and then load an html page on clicking on something using phonegap. But wont that be defeating the purpose of phonegap? There are loads of JS libraries that give the native look and feel



来源:https://stackoverflow.com/questions/7701825/does-phonegap-supports-native-android-menu

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!