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 = FragmentManager.FindFragmentById(Resource.Id.content_frame) as AnimalDetailsFragment;

            if (details == null || details.ShownAnimalIndex != animalId)
            {
                // Make new fragment to show this selection.
                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;
		}