Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-17279

Android: MenuItem's actionView property is not working

    Details

    • Sprint:
      2014 Sprint 15 SDK

      Description

        var menu = e.menu;
        var rightSymbolView = Ti.UI.createView({
      	width : Ti.UI.SIZE,
      	height : Ti.UI.SIZE
        });
       var rightSymbol = Alloy.createWidget("ti.ux.iconfont", "widget", {
      	right : 10,
      	size : 30,
              color : "#fff",
      	icon : "fa-gear"
       });
       rightSymbol.setParent(rightSymbolView);
       var menuItem = menu.add({
      	itemId : 0,
              actionView: rightSymbolView,
      	showAsAction : Ti.Android.SHOW_AS_ACTION_ALWAYS
        });
      

      The above code doesn't work. The below one works as expected.

      var menuItem = menu.add({
      	itemId : 0,
      	showAsAction : Ti.Android.SHOW_AS_ACTION_ALWAYS
        });
      menuItem.setActionView(rightSymbolView);
      

        Attachments

          Activity

            People

            • Assignee:
              sunila Sunila
              Reporter:
              mano_mykingdom Manojkumar Murugesan
              Reviewer:
              Hieu Pham
              Tester:
              Lokesh Choudhary
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-18938
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code