ImageView adjustViewBounds not working with Relative Layout

后端 未结 2 1769
滥情空心
滥情空心 2021-02-20 07:30

I have an ImageView and have set its layout_height to \"100dp\" and its layout_width to \"wrap_content\".

The drawable used has bigger actual

2条回答
  •  别那么骄傲
    2021-02-20 08:02

    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:maxHeight="100dp"
    android:adjustViewBounds="true"
    

    I got it there

提交回复
热议问题