Tinting ImageView not working on Android 5.0. Ideas how to make it work again?

后端 未结 3 2365
情书的邮戳
情书的邮戳 2021-02-19 22:15

In an application I\'ve built I noticed that the ImageViews are not tinted on devices running the new Android Lollipop. This is the code that used to work correctly on older ver

3条回答
  •  攒了一身酷
    2021-02-19 22:29

    Use the AppCompatImageView like so:

    
    

    Make sure you have the latest compile 'com.android.support:appcompat-v7:23.4.0' in your app's build.gradle.

提交回复
热议问题