Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Android Implementing Designs for Android Using Custom Styles and Themes Using Includes for Repeatable Layouts

Style not displaying in the Graphical Layout

Hi all,

Since moving the background_fill image into style.xml, it has not shown up in the Graphical Layout so I have a white bar down the right hand side of all screen resolutions.

Also, now we've created a style to use on the Sign Up screen, the Graphical Layout, again, does not show the style in place. The screen shots are the same as before, i.e. white background.

However, when I run the application on the emulator, phone or tablet, the style is in place.

Is this an editor setting?

Steve.

3 Answers

Calvin Nix
Calvin Nix
43,828 Points

Hey Steve,

Are you using Eclipse or Android Studio?

Thanks, Calvin

I'm using Eclipse.

Thanks,

Steve.

Calvin Nix
Calvin Nix
43,828 Points

Hmm.. On occasion I came across some weird bugs in Eclipse.

Whenever I encountered weird issues that seemed to be coming from an XML file I would do the following:

  • Cut out all of the contents of that file.
  • Save the new blank XML
  • Paste the contents that you recently cut from that file.

See if following these steps helps resolve your issue.

Thanks, Calvin