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

Tabbed action bar from Eclipse in Android Studio?

In the course "Self Destructing Message App" in Android, one of the first steps is to create the project file with a 'tabbed action bar'. The teacher uses and demonstrates this using Eclipse. However I use Android Studio. Where is the corresponding feature and how can I implement it in my project now?

1 Answer

Richard Luick
Richard Luick
10,955 Points

When creating a new project, on the page where you select the type of activity, select "Tabbed Activity". It should be the last one on the list. On the next page, there will be an option for "Navigation Style", under this select the option for "Action Bar Tabs(with ViewPager)". This will give you the same setup as tabbed action bar in eclipse.