What does ContextCompat do? When can we use it? why we use it?
What exactly is the use of ContextCompat in the follwing code.
When should we use ContextComat?
int color = ContextCompat.getColor(getContext(), mColorResourceId);
What does getContext() do?
What does getColor return?
from Recent Questions - Stack Overflow https://ift.tt/3xan0jt
https://ift.tt/eA8V8J
Comments
Post a Comment