Answers for "getResources().getColor() is deprecated"

0

getResources().getColor() is deprecated

yourView.setBackgroundColor(ContextCompat.getColor(applicationContext,
                            R.color.colorAccent))
Posted by: Guest on September-17-2021

Code answers related to "getResources().getColor() is deprecated"

Browse Popular Code Answers by Language