public static MenuDialog NewInstance(Bundle bundle) { MenuDialog fragment = new MenuDialog(); fragment.Arguments = bundle; fragment.mainActivity = (MainActivity)fragment.Activity; return(fragment); }
public void OnLongPress(MotionEvent e) { Log.Info(TAG, "OnLongPress"); // start menu FragmentTransaction transaction = FragmentManager.BeginTransaction(); MenuDialog menu = new MenuDialog(); menu.Show(transaction, "Dialog Fragment"); }