public QuickAction(Context context, QuickActionLayout orientation) { _context = context; _window = new PopupWindow(context); _childPos = 0; _window.TouchIntercepted += HandleTouchIntercepted; _windowManager = context.GetSystemService(Context.WindowService).JavaCast <IWindowManager>(); _orientation = orientation; _inflater = (LayoutInflater)context.GetSystemService(Context.LayoutInflaterService); SetRootViewId(orientation == QuickActionLayout.Horizontal ? Resource.Layout.popup_horizontal : Resource.Layout.popup_vertical); }
public QuickAction(Context context, QuickActionLayout orientation) { _context = context; _window = new PopupWindow(context); _childPos = 0; _window.TouchIntercepted += HandleTouchIntercepted; _windowManager = context.GetSystemService(Context.WindowService).JavaCast<IWindowManager>(); _orientation = orientation; _inflater = (LayoutInflater)context.GetSystemService(Context.LayoutInflaterService); SetRootViewId(orientation == QuickActionLayout.Horizontal ? Resource.Layout.popup_horizontal : Resource.Layout.popup_vertical); }