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

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

    Solution: I'm assuming that you have your toolbar as another xml file, something like this:

    toolbar.xml

    
    

    then using ConstraintLayout use it with FrameLayout like this:

    
    
    
        
    
        
    
    
    

    Hope this helps. Please comment if you have any issues with it.

提交回复
热议问题