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
Jathin Sreenivas
5,713 PointsHow 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
Ben Jakuben
Treehouse TeacherMethod 1: Use a fullscreen theme
Method 2: Hide it in code
Leonardo Vidal
14,603 PointsUsing this in the onCreate method of the activity:
ActionBar actionBar = getActionBar();
actionBar.setDisplayShowTitleEnabled(false);//hide title
actionBar.setDisplayShowHomeEnabled(false);//hide icon
Jathin Sreenivas
5,713 PointsThank 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?
Jathin Sreenivas
5,713 PointsJathin Sreenivas
5,713 PointsThank you...