Graphical layout missing for Layout XML Files

前端 未结 7 1872
无人及你
无人及你 2020-12-16 19:29

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

相关标签:
7条回答
  • 2020-12-16 20:03

    Do this:

    Delete project, without deleting the source files

    File>Import>Existing Projects into Workspace,and select your project

    problem fixed!

    0 讨论(0)
  • 2020-12-16 20:06

    Exact problem is described here.

    Solution: Right click on XML file, select open with -> Android Layout Editor.

    0 讨论(0)
  • 2020-12-16 20:09

    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. . :)

    0 讨论(0)
  • 2020-12-16 20:09

    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.

    0 讨论(0)
  • 2020-12-16 20:11

    Take a look on your Eclipse at : Window-->Preferences-->Editors-->File Associations-->.*XML--->set this as Default one---->ok

    0 讨论(0)
  • 2020-12-16 20:17

    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.

    0 讨论(0)
提交回复
热议问题