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.
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));
}
}