今天看Launcher的源代码的时候,看到有个叫original-package,有个哥们已经写过相关的博客,原封不动copy过来。
只用于安装在system image的packages。
需要注意下
这里package="com.android.launcher",产生的R.java就会在com.android.launcher中
这个地方表示,源码包是com.android.launcher2。所以在代码中引用的R.java必须是import com.android.launcher.R;
其实很简单,随便写了个测试程序,很容易搞明白。
使用标签的话,等组件在标识"android:name"时就必须声明完整的路径,“.ClassName”无效。
相关文章:
-
2022-12-23
-
2021-08-12
-
2022-12-23
-
2022-01-13
-
2022-12-23
-
2021-10-20
-
2021-11-22
-
2022-12-23
猜你喜欢
-
2022-12-23
-
2022-12-23
-
2022-12-23
-
2022-12-23
-
2022-12-23
-
2022-03-09
-
2022-12-23
相关资源
-
下载
2023-01-09
-
下载
2023-01-30
-
下载
2023-02-04