How to set a view's height match parent in ConstraintLayout?

后端 未结 4 1710
小蘑菇
小蘑菇 2020-12-22 13:51

I am creating a layout.I want to set my custom toolbar(Which is another layout) to the top of layout and the FrameLayout

4条回答
  •  离开以前
    2020-12-22 14:08

    Use 0dp that is match_contraint in ConstraintLayout.

    Like android:layout_height="0dp"

提交回复
热议问题