ConstraintLayout: set height of all views in row to match the tallest one

后端 未结 4 2029
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-29 21:35

I\'m trying to utilize a ConstraintLayout (version 1.0.2) to set the height of 2 side-by-side views to match the tallest one of them. This serves as a ViewHolder in for a Re

4条回答
  •  感动是毒
    2020-12-29 22:31

    Answering, in case anyone is looking out for answer in future.

    ConstraintLayout introduced Barrier in v1.1 to achieve one such functionality asked by the OP in the question

    The above mentioned functionality can be achieved using below xml:

    
    
    
      
    
      
    
      
    
    
    

提交回复
热议问题