How to half overlap images in android constraint layout

后端 未结 5 444
梦谈多话
梦谈多话 2021-01-01 15:20

Is there any way to place an images half is on top of another image using only constraint layout. I know it can be done using relative and frame layouts but in the case of c

5条回答
  •  甜味超标
    2021-01-01 16:03

    you can set layout using only constraint layout like below :

    
    
    
        
    
        
    
        
    
    
    

    Note: If you are using androidx then you have to use androidx.constraintlayout.widget.ConstraintLayout instead of android.support.constraint.ConstraintLayout

提交回复
热议问题