Issue
getColor(int) is deprecated .
How can I use getColor(int, theme theme)?
I used some lessons and I can't found how I can use getColor(int, theme theme).
Solution
Use something as
ResourcesCompat.getColor(getResources(), R.color.red, null)
(Prior to API level 23 the theme will not be applied, so it may be null.)
Answered By - MarianD
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.