tree: ed9a6fb151356217b2233b032e7e698d015693b2 [path history] [tgz]
  1. src/
  2. android.sdktools.layoutlib-extensions.iml
  3. BUILD
  4. build.gradle
  5. lint_baseline.xml
  6. README.md
layoutlib-extensions/README.md

Layoutlib-extensions library

This is a library to be loaded by ModuleClassLoader with a purpose of extending or amending behavior of user or standard Android framework code. Instead of making changes in layoutlib one could add code here because because one wants to:

  • Use Kotlin (layoutlib currently does not support Kotlin)
  • Rely on the code to be loaded by ModuleClassLoader (layoutlib is loaded with intellij plugin classloader)

Build and update

To build the library and update for the Android Studio run:

tools/vendor/google/layoutlib-prebuilt/update_layoutlib_extensions.sh

After that, the updated library can be found in prebuilts/studio/layoutlib/data/layoutlib-extensions.jar