Android的工作室 - 如何更改布局 [英] Android Studio - How to change layout

查看:949
本文介绍了Android的工作室 - 如何更改布局的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Eclipse中,我可以右键 - 点击我的布局(说的LinearLayout),然后单击更改布局
在Android Studio中,我没有看到这样的事情。我确实看到变形,但现在会在任何时候出现。例如,如果您创建的RelativeLayout简单HalloWorld,如果你右击的布局,而在图形模式下,变形将不会显示。
如果你右击一个小部件的布局,变形节目而是改变控件类型,而不是布局类型。

In Eclipse, I can right - click on my layout (say LinearLayout) and click on Change Layout In Android Studio, I dont see anything like that. I do see Morphing but that will now show up at all times. For example, if you create simple HalloWorld with RelativeLayout, if you right click on that Layout while in Graphical mode, Morphing will not show. If you right click on a widget in that layout, Morphing shows but to change widget type, not layout type.

推荐答案

如果你想改变布局,你可以做两件事情:

If you want to change the Layout, you can do Two things:

OPTION 1
1.只需点击你的XML文件,并选择在屏幕上底部的文本选项

OPTION 1 1. Simply click into your Xml file and select the "Text" option at the bottom on your screen

2.Change布局

2.Change to layout

选项2

1.Just拖动设计另一个布局,并把你的项目中,删除旧的布局PS。你可以在其他布局布局

1.Just drag another layout in Design and put your items in it, delete your old layout PS. you can have layouts in other layouts

希望我帮助!

这篇关于Android的工作室 - 如何更改布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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