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; }
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; }
internal ActionItemBuilder(Context context, QuickAction parent) { _context = context; _parent = parent; }
public ActionItemClickEventArgs(QuickAction source, int position) { Source = source; Position = position; ActionItem = source.GetActionItem(position); }