goneMargin is not respected in a wrap_content ConstraintLayout?

前端 未结 1 1595
借酒劲吻你
借酒劲吻你 2021-02-13 15:34

I have a ConstraintLayout where its height is wrap_content.

I want its height to be able to collapse or expanding, according to its Child\'s he

1条回答
  •  迷失自我
    2021-02-13 15:53

    Figured it out.

    goneMargin is used to indicate the margin to a GONE target, instead of itself being GONE.

    Therefore in fact I should put the goneMargin attributes in the Request Date instead of the large rectangle.

    0 讨论(0)
提交回复
热议问题