布局知识

布局中Suspicious size: this will make the view invisible, probably intended for layout_width的错误






  • 当LinearLayout的方向为horizontal(水平)时,权重分配应针对于layout_width(宽度);当LinearLayout的方向为vertical(垂直)时,权重分配应针对于layout_height(长度)。如若颠倒,则会出现上述错,如上举例,LinearLayout默认为horizontal(水平)。

你可能感兴趣的:(Android)