Where Is The Getresources() Method Implemented?
Does somebody know where is the getResources() method implemented? It is abstract method in android.content.Context class but I cannot find out which class implements it? I found a
Solution 1:
ContextImpl
is the canonical Context
implementation class. It has many ways for initializing its mResources
member variable which can be then accessed with getResources()
.
Context
s following the usual Activity
- ContextThemeWrapper
- ContextWrapper
inheritance path delegate getResources()
to the base context. The base context is set up as ContextImpl
instance when the activity is created.
Post a Comment for "Where Is The Getresources() Method Implemented?"