Android - Graphical display not working in Eclipse

Not been able to find the answer to this

When ever I look at the graphical display for any of my XML files within eclipse, it only shows the text strings and not buttons or anything like that

The Error log reads error! Unable to resolve drawable "C:\Program Files\android-sdk\platforms\android-10\data\res\drawable\btn_default.xml" in attribute "background" Exception details are logged in Window > Show View > Error Log

I have tried changing the version of the api from drop down to no luck

Thanks for your time

Answers


There is a mismatch between your target SDK version and your Graphical Layout target, should be an easy fix.

If you don't know it off the top of your head, you can get your Android SDK version for your project from right-clicking on your project name, going to Properties, selecting "Android", and looking for the test in the "platform" column for the row with a checkmark.

Then in the Graphical Layout for your XML file, in the top right in between the Locale selector and the Create button is a drop-down for Android versions. Change this to match the one for your project, and the errors should go away the graphical preview will render correctly.


Need Your Help

From Qt3 to Qt4 : issues with internal classes ( Q3GList & Q3PtrCollection )

c++ qt4 porting qt3

I'm updating a code from Qt3 to Qt4. I used qt3to4 porting tool, and it fixed some of my issues. But a few errors are remaining:

JBoss AS 7 Module for Seam 2.3.0?

java jboss module seam jboss7.x

I have become a big fan of JBoss AS7's module mechanism for specifying dependencies within an application. It has drastically reduced the size of the EAR files we deploy, and has made it very easy...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.