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
No comments:
Post a Comment