[AC-1095] Menu icons not visible in android
GitHub Issue | n/a |
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2015-03-20T22:07:54.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Alloy, Titanium SDK & CLI |
Labels | android |
Reporter | Hardik Amal |
Assignee | Radamantis Torres-Lechuga |
Created | 2015-02-16T12:44:08.000+0000 |
Updated | 2016-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
[~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
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