会不断补充有利于安卓开发的一些规范或者技巧!
一 建议使用Designtime属性
要使用designtime属性,首先要确保你的布局中定义了工具命名空间:xmlns:tools="http://schemas.android.com/tools"
工具命名空间是Android工具特别公认的命名空间,因此,当应用程序打包并且没有运行时开销时,所有在工具命名空间中的视图元素上定义的属性将被自动删除。
<TextView android:text="Name:" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<EditText tools:text="John Doe" android:layout_width="wrap_content" android:layout_height="wrap_content" />
这样开发时,我们可以看到布局,又不会影响到打包时带入到版本中
补充链接 http://tools.android.com/tips/layout-designtime-attributes