Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

graphical layout not working in eclipse with adt 10.1 [closed]

i am using eclipse with adt 10.1 for android development. i making the xml files via coding. whenever i switch over to the graphical layout to see how what i have written looks, sometimes the graphical layout does not show anything.

why does this happen. and how do i solve this?

thank you in advance.

like image 727
user590849 Avatar asked May 01 '11 12:05

user590849


4 Answers

Yes, this is a strange problem with eclipse I believe. Try this out,

Right click your XML file and select openwith->android layout editor

like image 65
Andro Selva Avatar answered Nov 15 '22 14:11

Andro Selva


this is an odd problem, and strangely, has a simple solution, (none that were mentioned above worked)..

CLOSE ECLIPSE 'n START AGAIN,

Removing a project from the workspace and then importing it again didn't really work for me..

im using 64-bit windows.. that could be a reason.

like image 21
Mahesh Avatar answered Nov 15 '22 14:11

Mahesh


I was having this problem, and found that the combo box on the top right side of the Graphical Layout screen was empty. If I selected a version of Android in this combo box, the layout would show up. This seems to be caused, at least for me, by selecting a Google APIs Project Build Target rather than one of the Android X.X ones. This setting is in Properties->Android.

like image 27
None The Wiser Avatar answered Nov 15 '22 13:11

None The Wiser


Just right click on the .XML file and choose Android layout editor you well get it. And there are more options available so you can use any one of those.

like image 41
vinod Avatar answered Nov 15 '22 15:11

vinod