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

后端 未结 4 1720
小蘑菇
小蘑菇 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:02

    Note, that unlike other viewgroups in android, constraintlayout should have circular dependencies between the child views. Herewith, you should use 0dp instead of 'match_parent' width and constraints for each side of the child view.

    
    
        
    
        
    
    
    

提交回复
热议问题