Olexiy K. wrote:
> Since new 0.9 SDK the is changes in MenuItem add method.
> How should I create menu items with icons now?
> 
> What is now:
> 
> public MenuItem add(int groupId, int itemId, int order, int titleRes)
> 
> and no parameter for icon image.

Call setIcon() on the MenuItem you get back from Menu#add().

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Warescription: All titles, revisions, & ebook formats, just $35/year

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to