Re: [android-developers] Focus problem with Option menu

2013-08-12 Thread Daniele Renda
Ah ok. Thanks so much. I'll check if this can be a existing bug! Thanks! 2013/8/11 TreKing treking...@gmail.com On Sun, Aug 11, 2013 at 12:00 PM, Daniele Renda daniele.re...@gmail.comwrote: Hi Treking, why do you say this? Oh, sorry, I was thinking about the old-school menu that was

Re: [android-developers] Focus problem with Option menu

2013-08-11 Thread Daniele Renda
Hi Treking, why do you say this? From this link: http://developer.android.com/guide/topics/ui/menus.html#options-menu I read: The options menu is where you should include actions and other options that are relevant to the current activity context, such as Search, Compose email, and Settings. and

Re: [android-developers] Focus problem with Option menu

2013-08-11 Thread TreKing
On Sun, Aug 11, 2013 at 12:00 PM, Daniele Renda daniele.re...@gmail.comwrote: Hi Treking, why do you say this? Oh, sorry, I was thinking about the old-school menu that was hidden and exposed via the Menu key. I guess you're going for the modern menu with an item showing in the action bar,

Re: [android-developers] Focus problem with Option menu

2013-08-10 Thread drenda
Hi Treking, thanks for your reply. I need that option menu always visibile (there is only one icon). If I try to open the keyboard into the method onPrepareOptionsMenu() before the creation of the menu, the keyboard disappers immediatly; insted if I open the keyboard after the menu is created

Re: [android-developers] Focus problem with Option menu

2013-08-10 Thread TreKing
On Sat, Aug 10, 2013 at 8:48 AM, drenda daniele.re...@gmail.com wrote: I need that option menu always visibile (there is only one icon). Then this UI element shouldn't be in the options menu. This is not what a menu is for. Create your option menu item as a button or something on the UI

Re: [android-developers] Focus problem with Option menu

2013-08-09 Thread TreKing
On Thu, Aug 8, 2013 at 4:50 AM, drenda daniele.re...@gmail.com wrote: the problem is that every time I press a key on the keyboard the icon of Option menu focus, and when I press enter the option menu is clickked. I don't want this, why the option menu is focused every time I press a key?

[android-developers] Focus problem with Option menu

2013-08-08 Thread drenda
Hi, I've a problem with Option menu and focus. I've a simple View in which I've some data come from remote service. I've to display an icon of the option menu only sometimes when remote object has some characteristics. So I do this: @Override public boolean onCreateOptionsMenu(Menu menu) {