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

How do I remove the title bar in an android app?

When I create a app, the name of the app is displayed on the top(title bar). How do I remove it?

2 Answers

Thank you...

Using this in the onCreate method of the activity:

ActionBar actionBar = getActionBar();
          actionBar.setDisplayShowTitleEnabled(false);//hide title
          actionBar.setDisplayShowHomeEnabled(false);//hide icon

Thank you...it did remove the title and the icon but there's a space between the app layout and the top. Can you help me with this as to how can i make my app full screen?