How does android:layout_weight work?

前端 未结 8 2091
后悔当初
后悔当初 2020-12-02 20:35

When I have the following, it shows top layout with four colors has much smaller area than the bottom layout area.

According to this documentation, when you add more

8条回答
  •  臣服心动
    2020-12-02 21:03

    If you get the error as

    error

    Suspicious size: this will make the view invisible, probably intended for layout ...

    remember to set the correct parameter on android:orientation in parent

提交回复
热议问题