Android(开源项目)原生启动器源代码似乎在其某些已发布的资源文件中缺少以下必需的XML布局参数:layout_height和layout_width
这会破坏启动程序编译,至少是独立编译,抛出错误,例如:
注意:there are many other issues that need to be resolved in order compile Android launcher2,这个问题是关于这些特定的缺失属性以及它们是如何丢失的?
那么,当缺少这些必需的属性时,Google如何编译代码?
此外,应该使用的值是什么:
android:layout_width="fill_parent"
android:layout_height="fill_parent"
或 wrap_content ,或特定像素值 - 换句话说,我在哪里可以获得此类信息/什么是秘密构建过程?
答案 0 :(得分:5)
我们不使用Eclipse + ADT编译Android,而是使用make。编译器在构建时不检查layout_width和layout_height。缺少这些属性时,会生成运行时错误。但是构建Launcher2是为了不需要这些属性(例如使用代码生成布局参数。)没有什么秘密可以:)