private void Fab_Click(object sender, System.EventArgs e) { Vibrator vibrator = (Vibrator)this.GetSystemService(VibratorService); vibrator.Vibrate(30); Bundle bundle = new Bundle(); bundle.PutString("CurrentUserUid", CurrentUserUid); add_Edit_Expense_Fragment = new Add_Edit_Expense_Fragment(); add_Edit_Expense_Fragment.Arguments = bundle; var trans = SupportFragmentManager.BeginTransaction(); add_Edit_Expense_Fragment.Show(trans, "Add Expense"); }
public void onEditMethodCallback(String expenseID, string ExpenseItemDescription, string ExpenseItemDate, string ExpenseItemAmount, string ExpenseItemName) { Bundle bundle = new Bundle(); bundle.PutString("expenseID", expenseID); bundle.PutString("ExpenseItemDescription", ExpenseItemDescription); bundle.PutString("ExpenseItemDate", ExpenseItemDate); bundle.PutString("ExpenseItemAmount", ExpenseItemAmount); bundle.PutString("ExpenseItemName", ExpenseItemName); // set Fragmentclass Arguments Add_Edit_Expense_Fragment fragobj = new Add_Edit_Expense_Fragment(); fragobj.Arguments = bundle; var trans = SupportFragmentManager.BeginTransaction(); fragobj.Show(trans, "Edit Expense"); bottomAppBar.TranslationY = 0.0f; fab.TranslationY = -84.0f; }