Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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.