{"id":17982411,"url":"https://github.com/nekocode/resourceinspector","last_synced_at":"2025-04-10T03:55:56.162Z","repository":{"id":98385778,"uuid":"93286335","full_name":"nekocode/ResourceInspector","owner":"nekocode","description":"A debug tool to inspect used layout files of current Activity.","archived":false,"fork":false,"pushed_at":"2017-12-23T17:21:34.000Z","size":661,"stargazers_count":349,"open_issues_count":0,"forks_count":22,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-04-10T03:55:51.791Z","etag":null,"topics":["android","tool"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nekocode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-04T02:52:55.000Z","updated_at":"2024-02-26T10:46:05.000Z","dependencies_parsed_at":"2023-04-26T08:34:26.058Z","dependency_job_id":null,"html_url":"https://github.com/nekocode/ResourceInspector","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nekocode%2FResourceInspector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nekocode%2FResourceInspector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nekocode%2FResourceInspector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nekocode%2FResourceInspector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nekocode","download_url":"https://codeload.github.com/nekocode/ResourceInspector/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248155001,"owners_count":21056542,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","tool"],"created_at":"2024-10-29T18:14:11.312Z","updated_at":"2025-04-10T03:55:56.127Z","avatar_url":"https://github.com/nekocode.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# README\n[![Apache 2.0 License](https://img.shields.io/badge/license-Apache%202.0-blue.svg?style=flat)](http://www.apache.org/licenses/LICENSE-2.0.html) [![Release](https://jitpack.io/v/nekocode/ResourceInspector.svg)](https://jitpack.io/#nekocode/ResourceInspector)\n\nA debug tool to inspect used layout files of current Activity. This tool is helpful when you want to find out layout xml files used in current Activity from a large amount of resource files.\n\nThis tool depenends on the **[Stetho](http://facebook.github.io/stetho/)** library. After you integrate this library to your project, you can open the Chrome's [DevTools window](https://developer.chrome.com/devtools#devtools-window) (navigate to `chrome://inspect` for opening it) to inspect your current Activity.\n\n![Screenshot](img/screenshot.png)\n\nYou can click the ![Icon](img/icon.png) icon in the DevTools window to switch your Application to the search mode. And then you can click on the widget which you want to search in your Activity to quickly locate the corresponding element in the DevTools window.\n\n(PS: To quickly expand all elements, just hold `Opt` and click on the arrow icon of root element.)\n\n## Getting started\n\nIn your `build.gradle`:\n\n```gradle\nrepositories {\n    maven { url \"https://jitpack.io\" }\n}\ndependencies {\n    debugCompile \"com.github.nekocode.ResourceInspector:resinspector:${lastest-version}\"\n    releaseCompile \"com.github.nekocode.ResourceInspector:resinspector-no-op:${lastest-version}\"\n    testCompile \"com.github.nekocode.ResourceInspector:resinspector-no-op:${lastest-version}\"\n\n    compile \"com.facebook.stetho:stetho:${stetho-lastest-version}\"\n}\n```\n\nIn your `Application` class:\n\n```java\npublic class MyApplication extends Application {\n    @Override\n    public void onCreate() {\n        super.onCreate();\n        ResourceInspector.initialize(this);\n    }\n}\n```\n\nIn your (Base) `Activity` class:\n\n```java\npublic class BaseActivity extends Activity {\n    @Override\n    protected void attachBaseContext(Context newBase) {\n        super.attachBaseContext(ResourceInspector.wrap(newBase));\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnekocode%2Fresourceinspector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnekocode%2Fresourceinspector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnekocode%2Fresourceinspector/lists"}