Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android

Alex Feinberg
Alex Feinberg
2,025 Points

Navigation type for Ribbit project

In the latest and greatest New Android Application wizard, the Navigation Types have changed from what is in the video. Which navigation type should be selected? I guessed "Action Bar Tabs (with ViewPager)". Assuming I guessed right, are there differences between this and the previous navigation type which will affect the rest of the project?

1 Answer

Ben Jakuben
STAFF
Ben Jakuben
Treehouse Teacher

Yes and no. You selected the right option! But the tools were updated a few weeks ago and there is actually a significant change that has been causing some trouble. Now, Fragments are included in Activities by default. The Activity just becomes a wrapper around the Fragment. This is because they encourage the use of Fragments as a best practice.

Anyhow, what this means is that the Login and Signup Activities will look a little different. I'm going to records some fixes next week and then we'll pop them in, but in the mean time, check out these instructions on how to remove Fragments (you'll have to scroll down a little). Or you can keep them and make layout changes in the fragment XML files and add code in the Fragment's onCreateView() method instead of the Activity's onCreate() method.

Or a third option: download the project files and continue from there! Hope this helps...

Alex Feinberg
Alex Feinberg
2,025 Points

I removed the fragments and all is will. Thanks!

I still have this problem. Can you please add notes to the video?