Problems with ConstraintLayout - ImageView 16:9 inappropriate top margin

前端 未结 5 475
鱼传尺愫
鱼传尺愫 2021-01-29 01:00

I want to build the following layout using ConstraintLayout:

I use this source for layout:


<         


        
5条回答
  •  逝去的感伤
    2021-01-29 02:06

    The gist of it is to use a packed chain, with a vertical bias of 0, so that the content of the chain will be at the top. Also, I'm not sure why you are using a FrameLayout -- you probably don't need to.

    With 1.1.0-beta2:

    
    
    
        
    
        
    
        
    
    
    

提交回复
热议问题