(Skin means that the related resource files are placed in a project independently, one skin and one project file A project includes more than N resource files. The connection of resources among multiple projects is that the file name, resource ID, etc. are exactly the same. When implementing program functions, if you can make the program interface more beautiful, it will be wonderful Let's start with the following ideas: 1) Skin means that the related resource files are placed in a project independently, one skin for one project file A project includes more than N resource files. The connection of resources among multiple projects is that the file name, resource ID, etc. are identical. The difference may be image resources, The settings of style, etc. are different. 2) The skin project configures android in AndroidManifest.xml: sharedUserId=com. eric.skinmain. It indicates that com. eric.skinmain is allowed to access the resource file in the project. eric.skinmain is the main item intent package name. 3) The main project passes this. createPackageContext (com. eric.backskin, Context. CONTEXT_IGNORE_SECURITY); Get the Context corresponding to com. eric.backskin, and then access any resources in com. eric.backskin through the returned context object, as if you were accessing your own resources
SkinMain\gen\com\eric\skinmain\R.java
SkinMain\res\drawable\bg.xml
SkinMain\res\drawable\btn_ normal.xml
SkinMain\res\drawable\icon.png
SkinMain\res\layout\main.xml
SkinMain\res\values\strings.xml
SkinMain\src\com\eric\skinmain\main.java
SkinMain\.classpath
SkinMain\.project
SkinMain\AndroidManifest.xml
SkinMain\default.properties
.....)