Yes, I have read but still have this doubt. Also read actionbar guide and I 
didn't see any reference to this specific issue...

Please could you give me a response? 

Thanks so much!

On Wednesday, July 24, 2013 10:00:01 AM UTC+2, Piren wrote:
>
> everything you need to know is here:
> http://developer.android.com/guide/topics/ui/menus.html
>
> On Tuesday, July 23, 2013 9:45:39 PM UTC+3, Felix Garcia Lainez wrote:
>>
>> Hi,
>>
>> The case is that I have several activities in which I use actionbar 
>> successfully, showing different actions on top (with icons), but when I 
>> click on menu key (galaxy s4) then the menu options is not shown... I don't 
>> know really if this is the desired behavior but I would like to have both 
>> available, as in my device I can't see long texts on action bar options...
>>
>> I am creating the menu in the following way (I have also other menus in 
>> other activities created with onPrepareOptionsMenu)
>>
>> @Override
>>
>> public boolean onCreateOptionsMenu(Menu menu) 
>>
>> {
>>
>>     MenuInflater inflater = getMenuInflater();
>>
>>     inflater.inflate(R.menu.my_menu, menu);
>>
>>     //super.onCreateOptionsMenu(menu);
>>
>>     return true;
>>
>> }
>>
>>
>> And the content of my_menu is this
>>
>>
>> <?xml version="1.0" encoding="utf-8"?>
>>
>> <menu xmlns:android="http://schemas.android.com/apk/res/android";>
>>
>> <item android:id="@+id/menu_item_save_alert_rules"
>>
>>   android:icon="@drawable/ic_menu_save"
>>
>>   android:title="@string/menu_save" 
>>
>>   android:showAsAction="ifRoom"/>
>>
>> </menu>
>>
>>
>>
>> What I have found is that if I add more items to the menu (4 or 5) then 
>> it works... 
>>
>>
>> Am I missing something? Is this the desired behavior? If it is the case, 
>> how could I take advantage of showing both kind of menus?
>>
>>
>> Thanks!
>>
>>
>>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to