I would like to open a "contextual menu" when a user touches a button.
I have searched with no success for a solution to have the default android context menu without autofocus. To me the default autofocus is a pain in the neck as it forces extra taps for the user (out of the menu window) to select another item on the main window.
My activity offers a gridview with items g1, g2,... and the contextual menu would display a list of textareas t1, t2... Here is what I need:
- when user taps g1, a menu shows up at the bottom of the screen (I need to be able to customize the menu layout basically)
- when user taps g1, the rest of the window does not fade away i.e. he should still be able to view normally the main window except for the space taken by the menu at the bottom
- when user taps g1, he does not loose the focus of the current window i.e. if he taps g2 after the menu has open, g2 will act normally without requiring an extra tap
- let's say user taps g1, then taps g2: the current contextual menu should close and a new one opens, refreshed for b2
- i need to do that for apps starting from minsdkversion=8 (seems i cannot use "action bar")
Hope this makes sense, let me know if it doesn't.
I guess that would be too much hassle to hack the default context menu to customize it this way? It's totally ok to create my own. But I don't know where to start. So could you point me toward the direction of achieving what I want ?
Thanks for your time