Skip to content

Latest commit

 

History

History

layout-inspector

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Integrate Layout Inspector Plugin in your application

Add Gradle Dependencies

Pluto Layout Inspector is distributed through mavenCentral. To use it, you need to add the following Gradle dependency to your build.gradle file of you android app module.

Note: add the no-op variant to isolate the plugin from release builds.

dependencies {
  debugImplementation "com.plutolib.plugins:layout-inspector:$plutoVersion"
  releaseImplementation "com.plutolib.plugins:layout-inspector-no-op:$plutoVersion"
}

Install plugin to Pluto

Now to start using the plugin, add it to Pluto

Pluto.Installer(this)
  .addPlugin(PlutoLayoutInspectorPlugin())
  .install()

🎉  You are all done!

Now re-build and run your app and open Pluto, you will see the Layout Inspector plugin installed.


Open Plugin view programmatically

To open Layout Inspector plugin screen via code, use this

Pluto.open(PlutoLayoutInspectorPlugin.ID)