Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

System Icons on Android

Hello,

How to put a standard system icon into an option menu item on Android?

I found this post:
https://appcelerator.tenderapp.com/discussions/titanium-mobile-discussion/73-what-are-all-of-the-possible-properties-of-titaniumuiandroidsystemicon-object

But, it doesn't work. Probably because Titanium.UI.Android.SystemIcon object doesn't exist.

However, using the values directly, like 'ti:Sys:ic_menu_preferences' does the trick.

BUT, title of the options menu item disappears (!), so the icon stretches to fill the empty space (doesn't look good).

Is this really planned for 1.6? (see ticket below, please).
I mean how hard is it do re-declare these constants in the code when string values used directly already work? Just fix the bug with title not showing and this is it. Right?

https://appcelerator.lighthouseapp.com/projects/32238/tickets/1568-android-systemicons-missing

— asked October 6th 2010 by Vitaly Kravchenko
  • android
  • icon
  • system
0 Comments

1 Answer

  • any updates on this issue?

    — answered January 18th 2011 by Aaron Saunders
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.