The secret Android build process

The source code of the original Android source program (open source) does not seem to contain the following required XML layout parameters in some of the published resource files: layout_height and layout_width

Missing Attributes

Compilation Exceptions

This interrupts the compilation of the launcher, at least the independent compilation, throwing errors such as:

  • Attribute
  • 'layout-width' Attribute must be defined
  • 'layout-height' must be defined

Note: there are many other problems that need to be solved to compile Android launcher2 , this question concerns these specific missing attributes and why are they missing?

How does Google compile its launcher and what are the values ​​of LayoutParams?

So how can Google compile code when these required attributes are missing?

Also, what are the values ​​that should be used if they:

android:layout_width="fill_parent" android:layout_height="fill_parent" 

or wrap_content or specific pixel values ​​- in other words, where can I get such information / what is this secret build process?

+8
java android android-source launcher viewgroup
source share
1 answer

We are not building Android with Eclipse + ADT, but with make. Compilers do not check layout_width and layout_height during build. When these attributes are missing, a runtime error is generated. But Launcher2 is built so that these attributes are not needed (for example, using code to generate layout parameters). There is nothing secret about it :)

+5
source share

All Articles