Android ImageView ScaleType and item height

后端 未结 4 1536
滥情空心
滥情空心 2020-12-09 09:54

Things looked quite simple first but in the end the result is not good. I have an image which has a width larger than screen\'s width. So I need to scale it down in my image

4条回答
  •  难免孤独
    2020-12-09 10:26

    You either need to set android:height = "wrap_content" on your outer container, or set static height of TextBox and give ImageView android:weight = "1" so that the ImageView takes remaining space in container.

提交回复
热议问题