tree: 8770bfd9452f5e7531b6208712885e7bdb92ed4b [path history] [tgz]
  1. src/
  2. android.sdktools.layoutlib-extensions.iml
  3. BUILD
  4. build.gradle
  5. 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