コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
ResourceInspection
Android Studio の Live Layout Inspector にカスタムビューの属性を表示します。
最新の更新 |
安定版リリース |
リリース候補版 |
ベータ版リリース |
アルファ版リリース |
2022 年 1 月 26 日 |
1.0.1 |
- |
- |
- |
依存関係の宣言
ResourceInspection への依存関係を追加するには、Google の Maven リポジトリをプロジェクトに追加する必要があります。詳しくは、Google の Maven リポジトリをご覧ください。
アプリまたはモジュールの build.gradle
ファイルに、必要なアーティファクトの依存関係を追加します。
Groovy
dependencies {
implementation "androidx.resourceinspection:resourceinspection-annotation:1.0.1"
}
Kotlin
dependencies {
implementation("androidx.resourceinspection:resourceinspection-annotation:1.0.1")
}
依存関係について詳しくは、ビルド依存関係の追加をご覧ください。
フィードバック
お寄せいただいたフィードバックは Jetpack 改善の参考にさせていただきます。新しい問題が見つかった場合や、このライブラリを改善するアイデアをお持ちの場合は、お知らせください。新しい問題を報告していただく前に、このライブラリの既存の問題をご確認ください。スターボタンをクリックすると、既存の問題に投票できます。
新しい問題を報告する
詳細については、Issue Tracker のドキュメントをご覧ください。
バージョン 1.0
バージョン 1.0.1
2022 年 1 月 26 日
androidx.resourceinspection:resourceinspection-annotation:1.0.1
と androidx.resourceinspection:resourceinspection-processor:1.0.1
がリリースされました。バージョン 1.0.1 に含まれる commit については、こちらをご覧ください。
バグの修正
バージョン 1.0.0
2021 年 11 月 3 日
androidx.resourceinspection:resourceinspection-annotation:1.0.0
と androidx.resourceinspection:resourceinspection-processor:1.0.0
がリリースされました。バージョン 1.0.0 に含まれる commit については、こちらをご覧ください。
1.0.0 の主な機能
- ResourceInspection ライブラリには、ライブラリのデベロッパーが Android Studio の Live Layout Inspector でカスタムビューの属性を表示するためのアノテーション プロセッサが用意されています。
バージョン 1.0.0-rc01
2021 年 10 月 27 日
androidx.resourceinspection:resourceinspection-annotation:1.0.0-rc01
と androidx.resourceinspection:resourceinspection-processor:1.0.0-rc01
がリリースされました。バージョン 1.0.0-rc01 に含まれる commit については、こちらをご覧ください。
バージョン 1.0.0-beta01
2021 年 9 月 15 日
androidx.resourceinspection:resourceinspection-annotation:1.0.0-beta01
と androidx.resourceinspection:resourceinspection-processor:1.0.0-beta01
がリリースされました。バージョン 1.0.0-beta01 に含まれる commit については、こちらをご覧ください。
バグの修正
- 存在しない属性で発生するクラッシュを修正しました(I87df0)
- 古い SDK に対してコンパイルするとクラッシュする問題を修正しました(Ie8a1e)
- 整数列挙型とフラグの検証を追加しました(Ic7ecf)
バージョン 1.0.0-alpha03
2021 年 6 月 30 日
androidx.resourceinspection:resourceinspection-annotation:1.0.0-alpha03
と androidx.resourceinspection:resourceinspection-processor:1.0.0-alpha03
がリリースされました。バージョン 1.0.0-alpha03 に含まれる commit については、こちらをご覧ください。
バグの修正
- 生成されたコードにより、Layout Inspector がビュー属性を読み取ることができなくなる原因となるバグを修正しました。(Ic7507)
バージョン 1.0.0-alpha02
2021 年 6 月 2 日
androidx.resourceinspection:resourceinspection-annotation:1.0.0-alpha02
と androidx.resourceinspection:resourceinspection-processor:1.0.0-alpha02
がリリースされました。バージョン 1.0.0-alpha02 に含まれる commit については、こちらをご覧ください。
API の変更
バージョン 1.0.0-alpha01
2021 年 3 月 24 日
androidx.resourceinspection:resourceinspection-annotation:1.0.0-alpha01
と androidx.resourceinspection:resourceinspection-processor:1.0.0-alpha01
がリリースされました。バージョン 1.0.0-alpha01 に含まれる commit については、こちらをご覧ください。
新機能
ライブラリ デベロッパーは、Resource Inspection ライブラリを使用すると、Android Studio の Live Layout Inspector でカスタムビューの属性を簡単に表示できます。この初回リリースは 1.0.0-alpha01
です。
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2025-07-27 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-07-27 UTC。"],[],[],null,["# Resource Inspection\n\nResourceInspection\n==================\n\nAPI Reference \n[androidx.resourceinspection.annotation](/reference/kotlin/androidx/resourceinspection/annotation/package-summary) \nSurface the attributes of custom views in Android Studio's Live Layout Inspector. \n\n| Latest Update | Stable Release | Release Candidate | Beta Release | Alpha Release |\n|------------------|--------------------------------------------------------------|-------------------|--------------|---------------|\n| January 26, 2022 | [1.0.1](/jetpack/androidx/releases/resourceinspection#1.0.1) | - | - | - |\n\nDeclaring dependencies\n----------------------\n\nTo add a dependency on ResourceInspection, you must add the Google Maven repository to your\nproject. Read [Google's Maven repository](/studio/build/dependencies#google-maven)\nfor more information.\n\nAdd the dependencies for the artifacts you need in the `build.gradle` file for\nyour app or module: \n\n### Groovy\n\n```groovy\ndependencies {\n implementation \"androidx.resourceinspection:resourceinspection-annotation:1.0.1\"\n}\n```\n\n### Kotlin\n\n```kotlin\ndependencies {\n implementation(\"androidx.resourceinspection:resourceinspection-annotation:1.0.1\")\n}\n```\n\nFor more information about dependencies, see [Add build dependencies](/studio/build/dependencies).\n\nFeedback\n--------\n\nYour feedback helps make Jetpack better. Let us know if you discover new issues or have\nideas for improving this library. Please take a look at the\n[existing issues](https://issuetracker.google.com/issues?q=componentid:1033483%20status:open)\nin this library before you create a new one. You can add your vote to an existing issue by\nclicking the star button.\n\n[Create a new issue](https://issuetracker.google.com/issues/new?component=1033483&template=1565569)\n\nSee the [Issue Tracker documentation](https://developers.google.com/issue-tracker)\nfor more information.\n\nVersion 1.0\n-----------\n\n### Version 1.0.1\n\nJanuary 26, 2022\n\n`androidx.resourceinspection:resourceinspection-annotation:1.0.1` and `androidx.resourceinspection:resourceinspection-processor:1.0.1` are released. [Version 1.0.1 contains these commits.](https://android.googlesource.com/platform/frameworks/support/+log/255d9759ff9495ea552d71b415bf638a02046780..8ae940536431022e180d2b13f8981184dc60fa74/resourceinspection)\n\n**Bug Fixes**\n\n- Added package documentation\n\n### Version 1.0.0\n\nNovember 3, 2021\n\n`androidx.resourceinspection:resourceinspection-annotation:1.0.0` and `androidx.resourceinspection:resourceinspection-processor:1.0.0` are released. [Version 1.0.0 contains these commits.](https://android.googlesource.com/platform/frameworks/support/+log/c38bf8cba2f6d60f9cceb03adcb56ff57f793b27..255d9759ff9495ea552d71b415bf638a02046780/resourceinspection)\n\n**Major features of 1.0.0**\n\n- The ResourceInspection library provides an annotation processor for library developers to surface the attributes of custom views in Android Studio's [Live Layout Inspector](/studio/debug/layout-inspector#4-0-0-live-layout-inspector).\n\n### Version 1.0.0-rc01\n\nOctober 27, 2021\n\n`androidx.resourceinspection:resourceinspection-annotation:1.0.0-rc01` and `androidx.resourceinspection:resourceinspection-processor:1.0.0-rc01` are released. [Version 1.0.0-rc01 contains these commits.](https://android.googlesource.com/platform/frameworks/support/+log/1a3dcfb231517d6104969f17063fcc6c97ba6eeb..c38bf8cba2f6d60f9cceb03adcb56ff57f793b27/resourceinspection)\n\n- No changes since 1.0.0-beta01\n\n### Version 1.0.0-beta01\n\nSeptember 15, 2021\n\n`androidx.resourceinspection:resourceinspection-annotation:1.0.0-beta01` and `androidx.resourceinspection:resourceinspection-processor:1.0.0-beta01` are released. [Version 1.0.0-beta01 contains these commits.](https://android.googlesource.com/platform/frameworks/support/+log/19ae3a88ff0824d615355b492cb56049e16991f2..1a3dcfb231517d6104969f17063fcc6c97ba6eeb/resourceinspection)\n\n**Bug Fixes**\n\n- Fixed crash on non-existent attributes ([I87df0](https://android-review.googlesource.com/#/q/I87df0c0c68f04b32274eaedd65b5a7ab3c56b562))\n- Fixed crash when compiling against an older SDK ([Ie8a1e](https://android-review.googlesource.com/#/q/Ie8a1eafcae62aa98330fc7af89474a32c61faafc))\n- Added validation for int enums and flags ([Ic7ecf](https://android-review.googlesource.com/#/q/Ic7ecf3386c04d133f74b858953d747cacfecfc5a))\n\n### Version 1.0.0-alpha03\n\nJune 30, 2021\n\n`androidx.resourceinspection:resourceinspection-annotation:1.0.0-alpha03` and `androidx.resourceinspection:resourceinspection-processor:1.0.0-alpha03` are released. [Version 1.0.0-alpha03 contains these commits.](https://android.googlesource.com/platform/frameworks/support/+log/86ff5b4bb956431ec884586ce0aea0127e189ec4..19ae3a88ff0824d615355b492cb56049e16991f2/resourceinspection)\n\n**Bug Fixes**\n\n- Fix a bug in generated code that prevented the Layout Inspector from reading view attributes. ([Ic7507](https://android-review.googlesource.com/#/q/Ic75075f21dafdf5cd12b714eff3a42e0fab17bbc))\n\n### Version 1.0.0-alpha02\n\nJune 2, 2021\n\n`androidx.resourceinspection:resourceinspection-annotation:1.0.0-alpha02` and `androidx.resourceinspection:resourceinspection-processor:1.0.0-alpha02` are released. [Version 1.0.0-alpha02 contains these commits.](https://android.googlesource.com/platform/frameworks/support/+log/5c42896eb6591b09e3952030fb7ea8d9b8c42713..86ff5b4bb956431ec884586ce0aea0127e189ec4/resourceinspection)\n\n**API Changes**\n\n- Improved AppCompat support ([I2d738](https://android-review.googlesource.com/#/q/I2d7387a017585bcea14a8d8a857b9b60930bc1c5), [b/188446121](https://issuetracker.google.com/issues/188446121))\n\n### Version 1.0.0-alpha01\n\nMarch 24, 2021\n\n`androidx.resourceinspection:resourceinspection-annotation:1.0.0-alpha01` and `androidx.resourceinspection:resourceinspection-processor:1.0.0-alpha01` are released. [Version 1.0.0-alpha01 contains these commits.](https://android.googlesource.com/platform/frameworks/support/+log/5c42896eb6591b09e3952030fb7ea8d9b8c42713/resourceinspection)\n\n**New Features**\n\nThe Resource Inspection library provides a convenient way for library developers to surface the attributes of custom views in Android Studio's [Live Layout Inspector](/studio/debug/layout-inspector#4-0-0-live-layout-inspector). This initial release is `1.0.0-alpha01`."]]