Hello,

I'm defining my options menu in an XML file and I want to add an icon
to the menu items.
Normally, this would be sth like
--
< (...)
  android:icon="@drawable/iconfile" />
--

But I want to use the drawables that are already stored in the
android.jar (as listed here: 
http://www.screaming-penguin.com/info/android_drawables/android_drawables.html
).
As the website says, I can access them via
--
myMenuItem.setIcon(android.R.drawable.ic_menu_save);
--
But how can I do that in XML? I tried several things but none worked
for me...


Best regards,
F Heft
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to