getResources().getDrawable(R.color.colorName) is deprecated What to use instead.
This is deprecated :
getResources().getDrawable(R.color.white);
This is new One:
ResourcesCompat.getDrawable(getResources(),R.color.white,null);
This is deprecated :
getResources().getDrawable(R.color.white);
This is new One:
ResourcesCompat.getDrawable(getResources(),R.color.white,null);
Comments
Post a Comment