Problems with Android XML Editor and Eclipse…Hard to manually edit XML

前端 未结 8 1542
被撕碎了的回忆
被撕碎了的回忆 2021-01-17 12:45

It\'s been a few years since I have last developed android apps. Since then, a graphical editor was added to Eclipse that allows you to generate the XML for an layout in a

8条回答
  •  忘掉有多难
    2021-01-17 13:26

    Although this is not exactly a solution (and hopefully doesn't earn me some downvotes) I've found a nice compromise is to open the layout twice, once in the android layout editor and once in the normal XML editor.

    You can do this by right clicking the file (or alt clicking on mac I assume) and selecting "Open With", you should see all the different android editors, a text editor and an XML editor.

    The nice thing about opening it twice is you can have it side-by-side (drag it to another pane), the only issue now is that you have to give focus to the android layout editor in order for it to update, but at least you have your shortcuts and delete keys.

提交回复
热议问题