does minHeight do anything?

后端 未结 3 1452
悲&欢浪女
悲&欢浪女 2021-02-06 22:16

In the attached image, I want the column of buttons to match the height of the image, but I also want there to be a minimum height for the column of buttons.

It correctl

3条回答
  •  旧巷少年郎
    2021-02-06 22:43

    Although my other answer is still valid, nowadays we have the benefit of ConstraintLayout. I'm sure the original poster has long since gotten past this problem, but for future users' sake: you can achieve the same result without the extra layer of ViewGroups. Something like this:

    
    
        

    Possibly you may need something like:

        app:layout_constrainedWidth="true"
    

    for the ImageView to handle larger images, but I haven't tested it.

提交回复
热议问题