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 Build a Simple Android App (2014) Creating the Screen Layout Using a Fullscreen Theme

I changed the code for the theme but the top bar is still there. Also it now will not run on the emulator.

I changed the code for the theme but the top bar is still there. Also it now will not run on the emulator.

Hello,

Could you post the code that you are having trouble with so that we can assist you?

Its alright, I read the log and apparently I can not have android:theme , so I just used an app:theme that was the same layout. I don't understand however why it said this activity couldn't have an "android:theme" layout tho.

Thanks again,

2 Answers

BENJAMIN KHA
BENJAMIN KHA
2,190 Points

I had the same problem. Go to FunFactsActivity.java, and change it to

```public class FunFactsActivity extends Activity {

For some reason, AndroidStudio had it as ActionBarActivity, which could only use AppCompat themes.