Drawable tinting for api <21

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

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



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

    Use the AppCompatImageView like so:

    
    

    Make sure you have the latest appcompat-v7 in your app's build.gradle.

    Example: compile 'com.android.support:appcompat-v7:25.0.0' in your app's build.gradle.

提交回复
热议问题