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; }
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); }