Esempio n. 1
0
        public static AnimalDetailsFragment NewInstance(int playId)
        {
            var detailsFrag = new AnimalDetailsFragment {
                Arguments = new Bundle()
            };

            detailsFrag.Arguments.PutInt("current_animal_id", playId);
            return(detailsFrag);
        }
        private void ShowDetails(int animalId)
        {
            _currentAnimalId = animalId;

            // Check what fragment is shown, replace if needed.
            var details = AnimalDetailsFragment.NewInstance(animalId);

            // Insert the fragment by replacing any existing fragment
            FragmentManager.BeginTransaction()
            .Replace(Resource.Id.content_frame, details)
            .AddToBackStack(null)
            .Commit();
        }
		public static AnimalDetailsFragment NewInstance (int playId)
		{
			var detailsFrag = new AnimalDetailsFragment { Arguments = new Bundle () };
			detailsFrag.Arguments.PutInt ("current_animal_id", playId);
			return detailsFrag;
		}