通过侧面的Andr​​oid图形布局和XML布局面 - Eclipse IDE的 [英] Eclipse IDE - Android Graphical Layout and XML Layout Side by Side

查看:209
本文介绍了通过侧面的Andr​​oid图形布局和XML布局面 - Eclipse IDE的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能让Android的图形布局旁边的Andr​​oid XML布局,所以我可以同时修改两者兼而有之?这将是更好的改变XML,并立即看到效果,而不是点击标签来改变这一切的时候。

Is it possible to have the Android Graphical Layout next to the Android XML layout so I can modify both simultaneously? It would be much better to change the XML and instantly see the effects, as opposed to clicking the tab to change it all the time.

推荐答案

是的,虽然我只是尝试过了,它有一点滞后,你想改变什么,在图形布局编辑器之后。

Yes, although I just tried it and it has a bit of lag after you change something in the Graphical Layout editor.

  1. 打开您的布局文件,如activity_foo.xml。
  2. 选择菜单项窗口>新建编辑器。这会给你另外一个编辑器相同的布局。在这个例子中,你会看到两个选项卡,都有activity_foo.xml。
  3. 在第二个选项卡上的鼠标preSS,然后将其拖动到右边,向下,直到你看到两个矩形的轮廓重新presenting编辑观点并排,然后松开鼠标按钮。
  4. 您现在有编辑并排。通过选择相应选项卡将一成图形布局模式,另成XML模式。

请注意,它看起来像图形布局将始终如一地更新XML。然而,变化中的XML似乎并不影响图形布局,直到您保存,然后再次单击图形编辑器。

Note that it seems like the Graphical Layout will consistently update the XML. However, changes in the XML don't seem to affect the Graphical Layout until you save and then click in the Graphical Editor again.

这篇关于通过侧面的Andr​​oid图形布局和XML布局面 - Eclipse IDE的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆