当我们在xml搭布局的时候,添加控件自动生成的Android:layout_width="" android:layout_height="",总是在一行,就需要我们手动去删除让其格式化,为让我们的编写代码的速度大大减慢,并且如果第一次出现,会让人很烦,很烦。。网上找了好久也没又找到相关文档,最后自己还是琢磨出来了!!!
1.自动生成宽高显示一行的效果:
<Button android:layout_width="" android:layout_height="" />
2.怎么解决?
3.当第5部选中之后再Ok回来,自动生成宽高就会可以使下面这样了:
<Button
android:layout_width=""
android:layout_height="" />