Hi guys, Im getting the abvove error, why?
Button buttonAddExercise = row.FindViewById<Button>(Resource.Id.buttonAddExercise); buttonAddExercise.Click += delegate { FragmentTransaction transaction = myContext.FragmentManager.BeginTransaction(); }; public DayObject(Context context, List<Fragments.Day> items) { myItems = items; myContext = context; }
You have to send Activity context from Fragment if your above code is in Fragment and if you are already in Android activity then use this.FragmentManager.BeginTransaction();
Answers
You have to send Activity context from Fragment if your above code is in Fragment and if you are already in Android activity then use this.FragmentManager.BeginTransaction();