问题
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