Android布局属性说明

Android布局LinearLayout注意设置属性android:orientation属性,否则有的组件可能无法显示。

该属性不设置时默认为horizontal。此时第一个控件的宽度若设置成“fill_parent”,后面添加的组件将都无法看到。因此使用该布局的时候要注意设置android:orientation="vertical"。

原文地址:https://www.cnblogs.com/go-onxp/p/4999846.html