Re: [android-developers] Options menu - icon + text

2012-04-19 Thread Mark Murphy
No, they can be used simultaneously on Android 1.x/2.x, but your
images may be too large. Make sure they are sized according to:

http://developer.android.com/guide/practices/ui_guidelines/icon_design_menu.html

On Thu, Apr 19, 2012 at 7:44 AM, Put_tiMe  wrote:
> I am trying to add an options menu:
>
>
>
> code:
> onCreateOptionsMenu()
> {
>       MenuInflater inflater = getMenuInflater();
>       inflater.inflate(R.menu.options_menu, menu);
> }
>
>
> xml:
> http://schemas.android.com/apk/res/android";>
>
>                android:icon="@drawable/A"
>           android:title=""
>            />
>
>                android:icon="@drawable/B"
>           android:title="B"
>           />
> 
>
>
> Only the image shows up, the 'text' never shows up.
> If I don't include the image, then the text shows up fine.
>
> Are they mutually exclusive?
>
>
> --
> 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



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
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


[android-developers] Options menu - icon + text

2012-04-19 Thread Put_tiMe
I am trying to add an options menu:



*code: *
onCreateOptionsMenu()
{
  MenuInflater inflater = getMenuInflater();
  inflater.inflate(R.menu.options_menu, menu);
}


*xml:*
http://schemas.android.com/apk/res/android";>







Only the image shows up, the 'text' never shows up.
If I don't include the image, then the text shows up fine.

Are they mutually exclusive?


-- 
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