Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding native bottom menu to phonegap app for android

I know there are a few workarounds to create an always visible bottom menu and still be able to scroll the content. (iscroll, jquery)

But isn't it possible to add this in the java file itself and then "communicate" with it. (highlight when selected and such) and the webview only extends to the bottom menu?

Or does anybody knows if there is an easy way with the new update 1.9 where their own webview is included? They haven't included many examples yet.

I know most people swear by jquery/prototype and all these frameworks, but i have heard that the speed of phonegap apps can be very slow, so i want to try making the app without an extra JS framework.

like image 321
Dan Mikkelsen Avatar asked Feb 24 '26 12:02

Dan Mikkelsen


1 Answers

Dan you'd be better off sticking with the Android way of providing this functionality which is providing an options menu that appears when you click the menu button.

https://developer.android.com/guide/topics/ui/menus.html#options-menu

From there in your onOptionsItemSelected method you can call a Javascript function using this.sendJavascript().

like image 75
Simon MacDonald Avatar answered Feb 26 '26 03:02

Simon MacDonald



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!