[TIMOB-2911] Android: Menu setIcon Should Support Resource Drawables
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T02:00:25.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.6.0 M06 |
Components | Android |
Labels | android, feature, release-1.6.0, reported-1.6.0 |
Reporter | Don Thorp |
Assignee | Don Thorp |
Created | 2011-04-15T03:32:43.000+0000 |
Updated | 2011-04-17T02:00:25.000+0000 |
Description
You should be able to use built in icons via
Titanium.Android.R.drawable.XXXXXX
when setting menu
icons. (e.g.
m1.setIcon(Titanium.Android.R.drawable.ic_menu_close_clear_cancel);
)
(from [4f15971134987632d7f76585fc526b0f21dc6406]) [#2855 state:fixed-in-qa] use resolved url not raw path. [#2911 state:fixed-in-qa] Support sending resource id's in the ROM. May be tested with BaseUI > Menu (android) > Menu Handlers (Window Options). There should be a circled X icon on the N1, not sure if it's the same on SenseUI. https://github.com/appcelerator/titanium_mobile/commit/4f15971134987632d7f76585fc526b0f21dc6406"> https://github.com/appcelerator/titanium_mobile/commit/4f1597113498...
verified on Nexus S / 2.3.2