diff options
author | Eric Holk <eholk@google.com> | 2018-09-05 10:43:31 -0700 |
---|---|---|
committer | Eric Holk <eholk@google.com> | 2018-10-01 14:05:10 -0700 |
commit | c4239ac4a8c145c99daf806b6e1a3ce5109049ba (patch) | |
tree | ac44371eabcd7236ff2694cdd8bf1cbf863d0f87 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 53f6d1b060c10121062c4054514c3e3a0c2444bd (diff) |
Prototype XML view compiler
This is an initial step towards a tool for pre-compiling layout XML files. It
accepts an XML file and produces a Java language class called CompiledView with
a static method, inflate. Calling CompiledView.inflate should then return a view
object that is equivalent to calling LayoutInflater.inflate on the same
resource.
There are still several important limitations, but this works well enough to do
some experimentation. The limitations include:
* Currently only one layout can be compiled at a time.
* `merge` and `include` nodes are not supported.
* View compilation is a manual process that requires code changes in the
application.
* The tests in this CL do not yet exercise any interesting behavior.
Bug: 111895153
Change-Id: I3e6880b08c52087d24ae7486495bd7fa282f4ff7
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions