Skip to content

A debug tool to inspect the used layout files of current Activity.

License

Notifications You must be signed in to change notification settings

matrixxun/ResourceInspector

 
 

Repository files navigation

README

Apache 2.0 License Release

A debug tool to inspect the used layout files of current Activity. This tool is helpful when you want to find out the layout xml files used in current Activity from a large amount of resource files.

Screenshot

Getting started

In your build.gradle:

repositories {
    maven { url "https://jitpack.io" }
}
dependencies {
    debugCompile "com.github.nekocode.ResourceInspector:resinspector:${lastest-version}"
    releaseCompile "com.github.nekocode.ResourceInspector:resinspector-no-op:${lastest-version}"
    testCompile "com.github.nekocode.ResourceInspector:resinspector-no-op:${lastest-version}"
}

In your (Base) Activity class:

public class BaseActivity extends Activity {
    @Override
    protected void attachBaseContext(Context newBase) {
        super.attachBaseContext(ResourceInspector.wrap(newBase));
    }
}

About

A debug tool to inspect the used layout files of current Activity.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%