{"id":21879077,"url":"https://github.com/coxier/layoutinspectorv2-pro","last_synced_at":"2025-04-07T05:14:48.044Z","repository":{"id":94794372,"uuid":"571113115","full_name":"CoXier/LayoutInspectorV2-Pro","owner":"CoXier","description":"Legacy Layout Inspector using v2 protocol much faster than v1 version.","archived":false,"fork":false,"pushed_at":"2024-12-10T02:54:36.000Z","size":1074,"stargazers_count":91,"open_issues_count":3,"forks_count":11,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T04:06:52.662Z","etag":null,"topics":["android","android-studio","intellij-plugin"],"latest_commit_sha":null,"homepage":"https://plugins.jetbrains.com/plugin/21047-layoutinspectorv2-pro","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/CoXier.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":"2022-11-27T07:44:13.000Z","updated_at":"2025-03-23T14:03:55.000Z","dependencies_parsed_at":"2024-12-13T10:38:51.041Z","dependency_job_id":null,"html_url":"https://github.com/CoXier/LayoutInspectorV2-Pro","commit_stats":{"total_commits":55,"total_committers":2,"mean_commits":27.5,"dds":"0.018181818181818188","last_synced_commit":"6144355c807e2705eab2292dcce010aca01940e0"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoXier%2FLayoutInspectorV2-Pro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoXier%2FLayoutInspectorV2-Pro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoXier%2FLayoutInspectorV2-Pro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoXier%2FLayoutInspectorV2-Pro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CoXier","download_url":"https://codeload.github.com/CoXier/LayoutInspectorV2-Pro/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247595335,"owners_count":20963943,"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","android-studio","intellij-plugin"],"created_at":"2024-11-28T08:15:00.979Z","updated_at":"2025-04-07T05:14:48.024Z","avatar_url":"https://github.com/CoXier.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LayoutInspectorV2-Pro\n[![Version][badge:version]][plugin-versions]\n[![Downloads][badge:downloads]][plugin-homepage]\n\n\n[plugin-homepage]: https://plugins.jetbrains.com/plugin/21047-layoutinspectorv2-pro\n[plugin-versions]: https://plugins.jetbrains.com/plugin/21047-layoutinspectorv2-pro/versions\n[badge:version]: https://img.shields.io/jetbrains/plugin/v/21047.svg?style=flat-square\u0026colorB=2196F3\n[badge:downloads]: https://img.shields.io/jetbrains/plugin/d/21047.svg?style=flat-square\u0026colorB=5C6BC0\n\nLayoutInspectorV2-Pro is an Android Studio/Intellij plugin that allows Android developers to dump the view hierarchy. It is similar to the Legacy-Layout-LayoutInspector in some ways.\n\n\u003e For convenience, LegacyLayoutInspector is abbreviated as LLI.\n\n## Installation\n\u003ckbd\u003ePreferences(Settings)\u003c/kbd\u003e \u003e \u003ckbd\u003ePlugins\u003c/kbd\u003e \u003e \u003ckbd\u003eMarketplace\u003c/kbd\u003e \u003e \u003ckbd\u003eSearch and find \u003cb\u003e\"LayoutInspectorV2-Pro\"\u003c/b\u003e\u003c/kbd\u003e \u003e \u003ckbd\u003eInstall Plugin\u003c/kbd\u003e\n\nRestart the **IDE** after installation.\n\n\u003cimg src=\"screenshots/img_4.png\" alt=\"your-image\" width=\"700\" height=\"460\" /\u003e\n\n\n## Usage\n\nYou can find the plugin in the Tools menu.After the dump, LayoutInspectorV2-Pro generates a file with the `.liv2` extension, just like the `.li` file.\n\n\u003cimg src=\"screenshots/img_2.png\" alt=\"your-image\" width=\"249\" height=\"502\" /\u003e\n\n## Why Use LayoutInspectorV2-Pro?\n\nThe Google Android team removed the Legacy-LayoutInspector from Android Studio Bumblebee. If you are a fan of LLI, this plugin will be useful for you. Based on LLI, LayoutInspectorV2-Pro has made some improvements, including:\n\n1. Faster dump speed\n2. Easier selection of the view you want\n\nThe following section explains these improvements in detail.\n\n### Dump Speed\n\nLLI provides two ProtocolVersions: `ProtocolVersions.V1` and `ProtocolVersions.V2`. According to the [source code](https://cs.android.com/android/_/android/platform/frameworks/base/+/0d857b9028f2702ce439e13feccde8182d40e1e5), this feature was added in 2015.\n\n![img.png](screenshots/img.png)\n\nLLI uses the V1 version by default to dump, but the V1 version is very slow. You may have seen a pop-up window warning of timeout.\n\n\u003cimg src=\"screenshots/img_1.png\" alt=\"your-image\" width=\"415\" height=\"219\" /\u003e\n\nUnfortunately, only internal Google engineers can use the V2 version. Therefore, LayoutInspectorV2-Pro uses the V2 version by default. I tested the dump speed of these two versions on my OnePlus 7 device with various numbers of views, and here are the results:\n\n|                          | 3000 views | 4000 views | 5000 views |\n|--------------------------|------------|------------|------------|\n| ProtocolVersions.V1 (ms) | 4101       | 5352       | 6577       |\n| ProtocolVersions.V2 (ms) | 625        | 724        | 837        |\n\n### Easier selection\n\nMany Android developers who use LLI may be confused by its default selection algorithm, which prioritizes the topmost view. However, in most cases, the sizes of areas should carry more weight when selecting a view.\n\nConsider the following scenario: there are two views, A and B, and B is on top of A. If you click the A area in the image panel, LLI may not select A because B is larger and covers A.\n\n\u003cimg src=\"screenshots/img_3.png\" alt=\"your-image\" width=\"806\" height=\"594\" /\u003e\n\nWith LayoutInspectorV2-Pro, the sizes of areas between A and B are compared, and A is selected because it is smaller than B. This approach ensures that the most appropriate view is selected.\n\n## Supported Versions\n\nLayoutInspectorV2-Pro should work with most Android Studio versions. The following Android Studio versions have been tested:\n\n| Version                       | Build Number                |\n|-------------------------------|-----------------------------|\n| Bumblebee 2021.1.1            | 211.7628.21.2111.8092744    |\n| Chipmunk 2021.2.1 Patch 2     | 212.5712.43.2112.8815526    |\n| Dolphin 2021.3.1              | 213.7172.25.2113.9014738    |\n| Electric Eel 2022.1.1 Patch 1 | 221.6008.13.2211.9514443    |\n| Flamingo 2022.2.1 Canary 10   | 222.4459.24.2221.9409768    |\n| Giraffe  2022.3.1 Canary 8    | 223.8617.56.2231.9687552    |\n| Hedgehog 2023.1.1 Beta 5      | 231.9392.1.2311.10809438    |\n| Iguana 2023.2.1 Canary 5      | 232.9921.47.2321.10840167   |\n| Android Studio Jellyfish      | 233.13135.103.2331.11360849 |\n\nIf you encounter any issues in any version, please report them.\n\n## Reporting Issues\n\nIf you encounter any issues while using LayoutInspectorV2-Pro, please report them by creating an issue in the project's issue tracker. To create an issue, please follow these steps:\n\n1. Go to the [issue tracker](https://github.com/CoXier/LayoutInspectorV2-Pro/issues).\n2. Click on the \"New Issue\" button.\n3. Fill out the form with as much detail as possible.\n4. Click on the \"Submit new issue\" button.\n\n## Contributing\n\nIf you would like to contribute to this project, please follow these steps:\n\n1. Fork the project.\n2. Create a new branch.\n3. Make your changes.\n4. Submit a pull request.\n\n## Show Your Support\n\nIf you find this project helpful, please consider giving it a star. Your support is greatly appreciated!\n\n\n## License\n\nThis project is licensed under the Apache License 2.0. See the `LICENSE` file for more information.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoxier%2Flayoutinspectorv2-pro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoxier%2Flayoutinspectorv2-pro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoxier%2Flayoutinspectorv2-pro/lists"}