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
Dana Rock
Courses Plus Student 1,777 PointsNo Tabs
While setting up the Ribbits application, I used Tabbed Activity, although my screen showed it on the same page as the Blank Activity, For the Navigation Style, I selected Swipe Views (View Pager).
Now that I am at the place where we are working the tabs, I see no tabs in the emulator.
How do I fix this?
4 Answers
Leonardo Vidal
14,603 PointsYou're welcome, not necessarily, you can re do only that activity, but if you re do the activity you have to set in your AndroidManifest as Main the new Activity: add this in the Activity declaration:
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
also if you already modified the menu layout , in the onCreateOptionsMenu of the new Activity change the first parameter of the method inflate() to match the old menu name
Leonardo Vidal
14,603 PointsFor Navegation Style you have to select Action Bar Tab(with View Pager)
Dana Rock
Courses Plus Student 1,777 PointsThank you Leonardo!
Does this mean that I need to redo the project and set it up with that style?
Please forgive me as I am trying to learn Android.
Dan
Dana Rock
Courses Plus Student 1,777 PointsThank you Leonardo!
That is too much for me to handle. I'll just restart the project from scratch.
Maybe I'll get this project done by Friday!
Dan
Leonardo Vidal
14,603 PointsOne more thing , the InboxFragment error that you get, maybe it's caused because the lack of tabs, so if you re do the project, that error ,should not appear
Good Luck!