Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1095] Menu icons not visible in android

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2015-03-20T22:07:54.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAlloy, Titanium SDK & CLI
Labelsandroid
ReporterHardik Amal
AssigneeRadamantis Torres-Lechuga
Created2015-02-16T12:44:08.000+0000
Updated2016-03-08T07:37:26.000+0000

Description

Menu icons not appearing when using them from the platform->android -->res-->drawable folder. activity.onCreateOptionsMenu = function(e) { var menu = e.menu; var Search = menu.add({ title : 'Search', actionView : searchView, icon : Ti.Android.R.drawable.ic_action_search, showAsAction : Ti.Android.SHOW_AS_ACTION_ALWAYS | Ti.Android.SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW }); var Menu = menu.add({ title : "Menu", icon : Ti.Android.R.drawable.ic_action_menu, showAsAction : Ti.Android.SHOW_AS_ACTION_ALWAYS, itemId : 1, order : 1 });

Attachments

FileDateSize
Screen Shot 2015-02-16 at 6.07.10 PM.png2015-02-16T12:44:08.000+0000108352

Comments

  1. Radamantis Torres-Lechuga 2015-03-18

    [~hardik_amal2007] can you please add more info to the ticket? - Titanium SDK version - Mobile OS Version - Device details - Test case - Steps to reproduce the issue
  2. Hardik Amal 2015-03-19

    Solved... i was writing Ti.Android.R.drawable.ic_action_search instead of Ti.App.Android.R.drawable.ic_action_search...you can close it

JSON Source