SyntaxFix
Write A Post
Hire A Developer
Questions
As of API 21, you could also use:
ResourcesCompat.getDrawable(getResources(), R.drawable.name, null);
Instead of ContextCompat.getDrawable(context, android.R.drawable.ic_dialog_email)
ContextCompat.getDrawable(context, android.R.drawable.ic_dialog_email)