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
chandlerknaus
1,635 PointsAndroid Fun Facts activity
Ok so I want to know how I can delete the top bar that says "Fun Facts" with the little robot dude... Is it possible or do I have to make a new app?
4 Answers
william parrish
13,774 PointsAdd the following line to your onCreate() method.
requestWindowFeature(Window.FEATURE_NO_TITLE);
william parrish
13,774 PointsI believe you will need to do it for anything that has an inflated layout associated with it, but you could just try it either way and see how it goes.
chandlerknaus
1,635 PointsI just get a flood of errors when I do that?
Is this right?
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_fun_facts);
requestWindowFeature(Window.FEATURE_NO_TITLE);
william parrish
13,774 PointsIt needs to go before the setContentView() line
chandlerknaus
1,635 PointsThank you so much :)
chandlerknaus
1,635 Pointschandlerknaus
1,635 PointsJust in my main class?