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

Popular posts from this blog

Today Walkin 14th-Sept

Spring Elasticsearch Operations

Hibernate Search - Elasticsearch with JSON manipulation