android - How can I show the buttons on the bottom when Menu hard-key is pressed? -


i made buttons.xml in layout directory.
i'd show on bottom of screen when user press 'menu hard-key'

my current code this.

@override public boolean onkeydown(int keycode, keyevent event) { if(keycode == keyevent.keycode_menu){     if (mactionbar.isshowing()) {         mactionbar.hide();         <<here, want hide buttons on bottom>>     }     else {         mactionbar.show();         <<here, want show buttons on bottom>>     } }else if(keycode == keyevent.keycode_back){     webview  mywebview = (webview)findviewbyid(r.id.webview1);     mywebview.goback(); } return true; } 

if referring options menu here how use it. have move xml layout menu folder.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -