Chapter 7 Resources in Plug-In(1)
Activity and resource are like twin brothers. And so if the activity need to be solve in Plug-In completely, you will have to face how to use the resource in it. In this chapter, we start with loading mechanism of the resource, and further discusses the Plug-In of resources through the addAssetPath method of AssetManager. Finally, we implement a skinning technique based on this solution. 7.1 How to load resources in Android 7.1.1 Kinds of resources The resource files in Android fall into two categories. One is under ‘res’ folder which can be compiled. During the compile process, ‘R.java’ file