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 Android Activity Lifecycle Introducing SharedPreferences Introduction to SharedPreferences

Alex Johnson
Alex Johnson
6,067 Points

Which app theme are you using?

I know this question is a bit beside the point of the video, but which app theme is this? For some reason when I set up the project myself I get a completely grey screen with no action bar.

1 Answer

Ben Deitch
STAFF
Ben Deitch
Treehouse Teacher

Hey Alex! Looks like it's Theme.AppCompat.Light.DarkActionBar.

Here's styles.xml:

<resources>
    <!-- Base application theme. -->
    <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
        <!-- Customize your theme here. -->
        <item name="colorPrimary">@color/colorPrimary</item>
        <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
        <item name="colorAccent">@color/colorAccent</item>
    </style>
</resources>

and colors.xml:

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <color name="colorPrimary">#3F51B5</color>
    <color name="colorPrimaryDark">#303F9F</color>
    <color name="colorAccent">#FF4081</color>
</resources>

Also, if you want to see any of the behind-the-scenes code, you can always flip over to the download tab and take a look at the project files.