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 to remove Actionbar (Andriod Studio 2.1.1)

Hello Friend, Here is the solution how to rid of your damn Actionbar :stuck_out_tongue:

let me know if it doesn't work :expressionless:


How to remove ActionBar:

  1. Go to AndriodManifest.xml and find
<application
(...)
android:theme="@style/AppTheme"
(...)

</application>

2.Click on the "@style/AppTheme" then press CTRL + B

CTRL+B command is "next-path"

3.Once you pressed CTRL + B you are in the file called styles.xml

4.Calm down and find the

<resources>
(...)
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
(...)

</style>
</resources>

Remove DarkActionBar to NoActionBar

warning: you cant write like this: Theme.AppCompat.NoActionBar. :sweat:

Go back to activity_main.xml so you can see your damn Actionbar has been removed.

Good Job :mortar_board: :coffee: