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

Change Top Menu Background Color

In an android app, how can I change the Menu's background color?

I only have one activity with the default menu for the blank activity layout.

I'm trying to make the background of that menu a nice "#cc324b" color but I can't figure out how to do it. I've been trying to google it but everyone online posts stuff I dont understand.

Thanks :)

1 Answer

Ben Jakuben
STAFF
Ben Jakuben
Treehouse Teacher

We are going to talk about this in the upcoming Implement Designs for Android app. Unfortunately, what seems like it should be easy is somewhat convoluted. Your best bet is to use the Asset Style Generator, like in this StackOverflow answer: http://stackoverflow.com/a/20077381/475217

In the upcoming "Implement Designs for Android app" will we be learning how to do it using the asset style generator, or will we be doing it from scratch? :)

Ben Jakuben
Ben Jakuben
Treehouse Teacher

Asset Style Generator. It's the easiest method currently available (which admittedly isn't saying much).