ImageView adjustViewBounds not working

后端 未结 5 1585
长发绾君心
长发绾君心 2020-12-01 01:27

I have an ImageView with android:layout_width=100dp, android:layout_height=wrap_content and android:adjustViewBounds=true

It\'

5条回答
  •  旧时难觅i
    2020-12-01 02:06

    In addition to @RomanNurik's answer

    You can find working solution here, either copy-paste code or just add the Gradle dependency

    dependencies {
        compile 'com.inthecheesefactory.thecheeselibrary:adjustable-imageview:1.0.1'
    }
    

    P.S. Solution provided by @Nilzor didn't work for me

提交回复
热议问题