Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2911] Android: Menu setIcon Should Support Resource Drawables

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T02:00:25.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.6.0 M06
ComponentsAndroid
Labelsandroid, feature, release-1.6.0, reported-1.6.0
ReporterDon Thorp
AssigneeDon Thorp
Created2011-04-15T03:32:43.000+0000
Updated2011-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);)

Comments

  1. Don Thorp 2011-04-15

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

  2. Marshall Culpepper 2011-04-15

    verified on Nexus S / 2.3.2

JSON Source