Android的工作室:“包装容器”中的XML布局 [英] Android Studio: 'wrap in container' in XML layout
本文介绍了Android的工作室:“包装容器”中的XML布局的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当编辑XML布局文件,Eclipse拥有一个名为包装容器功能(格式化 - > Android的 - > ...),让你选择一个或多个视图和包装你的选择,它周围的布局。 有没有在Android的工作室类似的东西?
When editing XML layout files, Eclipse has a feature called 'wrap in container' (Reformat -> Android -> ...) that lets you select one or several Views and wrap a layout of your choice around it. Is there something similar in Android Studio?
推荐答案
您可以使用Live模板的。 这里有一个对他们不错的文章。
You can use Live Templates for that. Here's a nice article about them.
编辑:
新模板可以通过添加文件>设置 - >编辑 - >动态模板
要找到热键为您的键盘布局去文件 - >设置
并写上活样板。对于我来说,<大骨节病> CTRL 骨节病> + <大骨节病>Ĵ骨节病>。
To find the hotkey for your keymap go to File->Settings
and write "Live template". For me it's CTRL + J .
这篇关于Android的工作室:“包装容器”中的XML布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文