I installed new SDK for android development. Now when I open Layout XML file for editing..its not showing Graphical Layout tab along with source. Its showing Design and Sour
Do this:
Delete project, without deleting the source files
File>Import>Existing Projects into Workspace,and select your project
problem fixed!
Exact problem is described here.
Solution:
Right click on XML file, select open with -> Android Layout Editor
.
Just Do it.
Right click on the XMLcode layout and then select opneWith Layout editor. It will show the Graphical Layout Editor for your Application and now you are able to see the GrapgicalLayout on Your every Application that have coded by XML code.
Enjoy. . :)
Another "fix" is to copy everything in the .xml to clipboard, then delete everything in the file, add some item in graphical view(should work now), then go back to ext editor and paste your old layout.
sounds stupid, but works sometimes.
Take a look on your Eclipse at : Window-->Preferences-->Editors-->File Associations-->.*XML--->set this as Default one---->ok
This happens to me occasionally. I just right click the xml layout file and choose "Open With... Android Layout Editor". It seems to then fix itself until the next time.