Exemple #1
0
        public static MenuDialog NewInstance(Bundle bundle)
        {
            MenuDialog fragment = new MenuDialog();

            fragment.Arguments    = bundle;
            fragment.mainActivity = (MainActivity)fragment.Activity;
            return(fragment);
        }
Exemple #2
0
        public void OnLongPress(MotionEvent e)
        {
            Log.Info(TAG, "OnLongPress");

            // start menu
            FragmentTransaction transaction = FragmentManager.BeginTransaction();
            MenuDialog          menu        = new MenuDialog();

            menu.Show(transaction, "Dialog Fragment");
        }