private void ShowBottomSheet(int position)
        {
            BottomSheetFragment fragment =
                BottomSheetFragment.NewInstance(this.action, this.adapter.GetItem(position));

            fragment.Show(this.SupportFragmentManager, "dialog");
        }
 public static BottomSheetFragment NewInstance(int action, string title) 
 {
     BottomSheetFragment frag = new BottomSheetFragment();
     Bundle args = new Bundle();
     args.PutString("title", title);
     args.PutInt("action", action);
     frag.Arguments = args;
     return frag;
 }
Esempio n. 3
0
        public static BottomSheetFragment NewInstance(int action, string title)
        {
            BottomSheetFragment frag = new BottomSheetFragment();
            Bundle args = new Bundle();

            args.PutString("title", title);
            args.PutInt("action", action);
            frag.Arguments = args;
            return(frag);
        }