Android XML format设置
来源:互联网 发布:超市语音播报软件 编辑:程序博客网 时间:2024/05/22 16:53
android中XML的format默认的2个属性一行,如:
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:stretchColumns="1" android:orientation="horizontal">
看着不方便、
在Eclipse中设置一下:
Window -> Preferences, XML/XML Files/Editor, 勾选"Split multiple attributes each on a new line” .配置后,使用Ctrl+Shift+F 或者右键 Source -> Format 格式化就会每个属性占一行,如:
<TableLayoutxmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="fill_parent"android:layout_height="fill_parent"android:stretchColumns="1"android:orientation="horizontal">
另,没有子节点的元素的声明方式进行压缩如"<TextView ...></TextView>” 格式为"<TextView .../>”:
右键"Source/Cleanup Document...“, 勾选"Compress empty element tags”, OK
- Android XML format设置
- format xml
- android .string.xml使用String.format出现的问题
- libvirt XML format
- format and indent xml
- C# XML Format
- xml json format
- android textview xml 属性设置
- android textview xml 属性设置
- android textview xml 属性设置
- android颜色color.xml设置
- android textview xml 属性设置
- Android 背后的XML设置
- android studio xml 快捷键设置
- eclipse code format设置
- eclipse设置format格式
- ligerdateeditor -- format设置
- Eclipse XML SQL Format Tip
- 自定义分页标签
- 使用SOCKET发送HTTP请求
- 数字视频光端机方案设计
- jquery 验证
- 项目管理的几条想法
- Android XML format设置
- [教程]【七大经典软件】【【图解】远离91助手和iTunes之完全解决方案】
- javaweb国际化/格式化标签
- NDK实现HTTP请求
- svn:revert to this version 和 revert changes from this version的区别
- hdoj 1325是不是树
- 详解Oracle升高或降低参数Compatible
- 用豌豆荚给Android真机安装应用
- php apache用户写文件夹权限设置