Bug 17363 - Line #23 of Fragments walkthrough is incorrect
Summary: Line #23 of Fragments walkthrough is incorrect
Status: NEW
Alias: None
Product: Documentation
Classification: Xamarin
Component: Mono for Android ()
Version: unspecified
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Mark Smith
URL:
Depends on:
Blocks:
 
Reported: 2014-01-21 23:03 UTC by Mark Smith
Modified: 2014-01-22 11:34 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 17363 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
NEW

Description Mark Smith 2014-01-21 23:03:32 UTC
The transition is not correctly specified.  It reads:

ft.SetTransition(FragmentTransaction.TransitFragmentFade);

But should be:

ft.SetTransition(FragmentTransit.FragmentFade);
Comment 1 bryan costanich 2014-01-22 00:14:07 UTC
where's this at?
Comment 2 Mark Smith 2014-01-22 11:31:26 UTC
Sorry, should have included the URL:

http://docs.xamarin.com/guides/android/platform_features/fragments/fragments_walkthrough/part_1_-_walkthrough/

Part 4, OnListItemClick override, here's the fragment:

if (details == null || details.ShownPlayId != playId)
       {
           // Make new fragment to show this selection.
           details = DetailsFragment.NewInstance(playId);
           // Execute a transaction, replacing any existing
           // fragment with this one inside the frame.
           var ft = FragmentManager.BeginTransaction();
           ft.Replace(Resource.Id.details, details);
           ft.SetTransition(FragmentTransaction.TransitFragmentFade);
           ft.Commit();
       }