[android-developers] Re: Replacing default Menu with a Dialog

2008-12-19 Thread Mark Murphy
Dianne Hackborn wrote: Fwiw, you can just replace the entire menu view with your own so your custom UI slides out like a normal menu instead of popping up a dialog. This would give an experience much more consistent with what users expect. Ooo! Can you point us to an

[android-developers] Re: Replacing default Menu with a Dialog

2008-12-18 Thread mscwd01
That worked nicely, thanks. On Dec 18, 1:19 am, Mark Murphy mmur...@commonsware.com wrote: mscwd01 wrote: I wish to replace the default Menu with a Dialog that consists of several TextViews. I suspect what you mean is: you want to display a Dialog that consists of several TextViews when

[android-developers] Re: Replacing default Menu with a Dialog

2008-12-18 Thread the.victim
don't know the advantages of your solution Mark, but the solution of mscwd01 was not that wrong. just moving the dialog.show() to the overriden method onPrepareOptionsMenu(Menu menu) would have done the job. oncreatemenu is just called once. On 18 Dez., 13:30, mscwd01 mscw...@gmail.com wrote:

[android-developers] Re: Replacing default Menu with a Dialog

2008-12-18 Thread Mark Murphy
the.victim wrote: don't know the advantages of your solution Mark, but the solution of mscwd01 was not that wrong. just moving the dialog.show() to the overriden method onPrepareOptionsMenu(Menu menu) would have done the job. oncreatemenu is just called once. There might be side-effects of

[android-developers] Re: Replacing default Menu with a Dialog

2008-12-18 Thread Dianne Hackborn
Fwiw, you can just replace the entire menu view with your own so your custom UI slides out like a normal menu instead of popping up a dialog. This would give an experience much more consistent with what users expect. On Thu, Dec 18, 2008 at 4:34 PM, Mark Murphy mmur...@commonsware.comwrote:

[android-developers] Re: Replacing default Menu with a Dialog

2008-12-17 Thread Mark Murphy
mscwd01 wrote: I wish to replace the default Menu with a Dialog that consists of several TextViews. I suspect what you mean is: you want to display a Dialog that consists of several TextViews when the user presses the [MENU] key. Creating the dialog is easy, however how does one override