android / codelab-android-navigation

Apache License 2.0
635 stars 275 forks source link

Add helpful tip #82

Closed tzgardner closed 5 years ago

tzgardner commented 5 years ago

I went through your Jetpack Navigation tutorial and got hung up on step 12 to create your own shopping cart fragment. I did not realize the id's in the mobile_navigation.xml and the main_menu.xml need to match. Typically id's are unique, so this part was not intuitive. It would have been nice to know this under part 9 of the tutorial. Maybe a side note?

ceruleanotter commented 5 years ago

Thanks for reporting this and the feedback and apologies about the confusion. We do mention this in step 9, I'm bolding and underlining it, since it's easily missed.