It might be better to not make it look exactly like the Android context menu, with the drop-shadow on the top. If a user touches the back button, they'd expect it to go away. Perhaps take a look at the Gmail persistent bottom menu as a UI guide, which is styled differently than the context menu.
On Tue, Jan 5, 2010 at 8:43 PM, Nithin <nithin.war...@gmail.com> wrote: > > Thanks all for your reply. > > I created the layout for custom menu. But that doesn't look like the > in-built menu in Android. Moreover, I am designing the layout in java, > not in xml. Now, I am using imageButton, I will try some other options > too. > > Thanks > > > On Jan 6, 2:59 am, Wayne Wenthin <wa...@fuligin.com> wrote: > > I'll second that. Its actually easier than you think. > > > > > > > > On Tue, Jan 5, 2010 at 9:12 AM, Guna <guna.andr...@gmail.com> wrote: > > > Nithin, > > > > > If you want to display Menu always means, just design your own layout > same > > > like menu and use that.. > > > > > Guna > > > > > -----Original Message----- > > > From: android-developers@googlegroups.com > > > [mailto:android-develop...@googlegroups.com] On Behalf Of Nithin > > > Sent: 05 January 2010 20:57 > > > To: Android Developers > > > Subject: [android-developers] Menu always Displayable > > > > > Hi, > > > > > I want options menu should always display, when I open my > > > application, for that I put openOptionsMenu(), in onCreate() of the > > > launcher activity. But its showing exception. > > > > > --android.view.WindowManager$BadTokenException: Unable to add window > > > -- token n > > > ull is not valid; is your activity running? > > > > > Then I put openOptionsMenu() in onResume(), still its throwing > > > exception. > > > > > Any idea how to make menu displayable always. > > > > > Nithin > > > > > -- > > > You received this message because you are subscribed to the Google > > > Groups "Android Developers" group. > > > To post to this group, send email to > android-developers@googlegroups.com > > > To unsubscribe from this group, send email to > > > android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> > <android-developers%2bunsubscr...@googlegroups.com<android-developers%252bunsubscr...@googlegroups.com> > > > > > For more options, visit this group at > > >http://groups.google.com/group/android-developers?hl=en > > > > > -- > > > You received this message because you are subscribed to the Google > > > Groups "Android Developers" group. > > > To post to this group, send email to > android-developers@googlegroups.com > > > To unsubscribe from this group, send email to > > > android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> > <android-developers%2bunsubscr...@googlegroups.com<android-developers%252bunsubscr...@googlegroups.com> > > > > > For more options, visit this group at > > >http://groups.google.com/group/android-developers?hl=en > > > > -- > > Writing code is one of few things > > that teaches me I don't know everything. > > > > Join the Closed Beta of Call Girl Managerhttp://www.fuligin.com/forums > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en >
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en