文件名称:AndroidActivityjar
介绍说明--下载内容均来自于网络,请自行研究使用
Android将Activity打包成jar包供第三方调用,代码的核心是MResource这个类,利用反射根据资源名字获取资源ID(其实系统也自带了根据资源名字获取资源ID的方法getResources().getIdentifier("main_activity", "layout", getPackageName()) 第一个参数是资源的名字,第二个参数是资源的类型,例如layout, string等,第三个是包名字)-Android se empaqueta en un paquete jar Actividad de llamadas de terceros, el código del núcleo es MResource esta clase, mediante el acceso de reflexión a los recursos basados en los nombres de identificación de recursos (de hecho, el sistema también viene con acceso a los recursos basados en el ID de recurso del nombre de los getResources método (). GetIdentifier ("main_activity "," layout ", getPackageName ()) primer parámetro es el nombre del recurso, el segundo parámetro es el tipo de recurso, como el diseñ o, hilo, etc, y el tercero es el nombre del paquete)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
AndroidActivityjar\ActivityLibrary\.classpath
..................\...............\.project
..................\...............\AndroidManifest.xml
..................\...............\bin\ActivityLibrary.apk
..................\...............\...\AndroidManifest.xml
..................\...............\...\classes\com\example\activitylibrary\BuildConfig.class
..................\...............\...\.......\...\.......\...............\LibraryActivity$1.class
..................\...............\...\.......\...\.......\...............\LibraryActivity.class
..................\...............\...\.......\...\.......\...............\MResource.class
..................\...............\...\.......\...\.......\...............\R$attr.class
..................\...............\...\.......\...\.......\...............\R$drawable.class
..................\...............\...\.......\...\.......\...............\R$id.class
..................\...............\...\.......\...\.......\...............\R$layout.class
..................\...............\...\.......\...\.......\...............\R$menu.class
..................\...............\...\.......\...\.......\...............\R$string.class
..................\...............\...\.......\...\.......\...............\R$style.class
..................\...............\...\.......\...\.......\...............\R.class
..................\...............\...\classes.dex
..................\...............\...\dexedLibs\android-support-v4-6bb6f16a46515434e0e62db3d6a228cc.jar
..................\...............\...\res\drawable-hdpi\ic_launcher.png
..................\...............\...\...\.........ldpi\ic_launcher.png
..................\...............\...\...\.........mdpi\ic_launcher.png
..................\...............\...\...\.........xhdpi\ic_launcher.png
..................\...............\...\resources.ap_
..................\...............\gen\com\example\activitylibrary\BuildConfig.java
..................\...............\...\...\.......\...............\R.java
..................\...............\ic_launcher-web.png
..................\...............\libs\android-support-v4.jar
..................\...............\proguard-project.txt
..................\...............\project.properties
..................\...............\res\drawable-hdpi\ic_launcher.png
..................\...............\...\.........ldpi\ic_launcher.png
..................\...............\...\.........mdpi\ic_launcher.png
..................\...............\...\.........xhdpi\ic_launcher.png
..................\...............\...\layout\activity_main.xml
..................\...............\...\menu\activity_main.xml
..................\...............\...\values\strings.xml
..................\...............\...\......\styles.xml
..................\...............\...\......-v11\styles.xml
..................\...............\...\.........4\styles.xml
..................\...............\src\com\example\activitylibrary\LibraryActivity.java
..................\...............\...\...\.......\...............\MResource.java
..................\.ndroidLibraryInvoke\.classpath
..................\....................\.project
..................\....................\AndroidManifest.xml
..................\....................\bin\AndroidLibraryInvoke.apk
..................\....................\...\AndroidManifest.xml
..................\....................\...\classes\com\example\androidlibraryinvoke\BuildConfig.class
..................\....................\...\.......\...\.......\....................\MainActivity$1.class
..................\....................\...\.......\...\.......\....................\MainActivity.class
..................\....................\...\.......\...\.......\....................\R$attr.class
..................\....................\...\.......\...\.......\....................\R$drawable.class
..................\....................\...\.......\...\.......\....................\R$id.class
..................\....................\...\.......\...\.......\....................\R$layout.class
..................\....................\...