예제 #1
0
        void InitializeContextMenu()
        {
            _quickAction = new QuickAction(this, QuickActionLayout.Horizontal);
            ActionItemBuilder builder = _quickAction.GetBuilder();

            builder.SetItemId(QUICKACTION_DISTANCEDEMO)
            .SetTitle("Distance Demo")
            .SetIcon(Android.Resource.Drawable.StatSysDataBluetooth)
            .AddToParent();

            builder.SetItemId(QUICKACTION_NOTIFYDEMO)
            .SetTitle("Notify Demo")
            .SetIcon(Android.Resource.Drawable.StatNotifyError)
            .AddToParent();

            _quickAction.ActionItemClicked += HandleActionItemClicked;
        }
예제 #2
0
        void InitializeQuickAction()
        {
            _quickAction = new QuickAction(this, QuickActionLayout.Horizontal);
            ActionItemBuilder builder = _quickAction.GetBuilder();

            builder.SetItemId(QUICKACTION_DISTANCEDEMO)
                   .SetTitle("Distance Demo")
                   .SetIcon(Android.Resource.Drawable.StatSysDataBluetooth)
                   .AddToParent();

            builder.SetItemId(QUICKACTION_NOTIFYDEMO)
                   .SetTitle("Notify Demo")
                   .SetIcon(Android.Resource.Drawable.StatNotifyError)
                   .AddToParent();

            _quickAction.ActionItemClicked += HandleActionItemClicked;
        }
예제 #3
0
 internal ActionItemBuilder(Context context, QuickAction parent)
 {
     _context = context;
     _parent  = parent;
 }
예제 #4
0
 public ActionItemClickEventArgs(QuickAction source, int position)
 {
     Source     = source;
     Position   = position;
     ActionItem = source.GetActionItem(position);
 }
예제 #5
0
 internal ActionItemBuilder(Context context, QuickAction parent)
 {
     _context = context;
     _parent = parent;
 }
 public ActionItemClickEventArgs(QuickAction source, int position)
 {
     Source = source;
     Position = position;
     ActionItem = source.GetActionItem(position);
 }