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 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