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

后端 未结 3 2373
情书的邮戳
情书的邮戳 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:51

    this code work for me in android lollipop

    ImageViewCompat.setImageTintList(imageView,ColorStateList.valueOf(Color.parseColor(chartTable.getReport().getButtonColor())));
    

提交回复
热议问题