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.
Yes, this is a strange problem with eclipse I believe. Try this out,
Right click your XML file and select openwith->android layout editor
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With