I wanted to understand the real difference in using View.getResources() and View.getContext().getResources().
For example, I have to set a color to a TextView from resource..
view.setTextColor(view.getResources().getColor(R.color.Blue));
or
view.setTextColor(view.getContext().getResources().getColor(R.color.Blue));
Both works , but as per the documents...
View.getResources() - Returns the resources associated with this view.
View.getContext() - Returns the context the view is running in, through which it can access the current theme, resources, etc.
Your thoughts are welcome....