Drawable tinting for api <21

后端 未结 10 1983
情话喂你
情话喂你 2020-11-29 01:56

Is it possible to make drawable tinting work for api < 21?



        
10条回答
  •  青春惊慌失措
    2020-11-29 02:37

    For tinting images you could use imageView.setColorFilter(int color). This works from API 8 and worked for tinting my black image to a color I wanted. This can replace setImageTintList() but just using android:tint should also work.

提交回复
热议问题