Expert checklist and prompts for auditing and fixing Android accessibility issues, especially in Jetpack Compose.
日本語の概要は準備中です。原文の説明を表示しています。
Expert guidance on using Coil for image loading in Jetpack Compose. Use this when asked about loading images from URLs, handling image states, or optimizing image performance in Compose.
インストールする前に、エージェントに与えられる指示の中身を確認できます。
When implementing image loading in Jetpack Compose, use Coil (Coroutines Image Loader). It is the recommended library for Compose due to its efficiency and seamless integration.
AsyncImageUse AsyncImage for most use cases. It handles size resolution automatically and supports standard Image parameters.
AsyncImage(
model = ImageRequest.Builder(LocalContext.current)
.data("https://example.com/image.jpg")
.crossfade(true)
.build(),
placeholder = painterResource(R.drawable.placeholder),
error = painterResource(R.drawable.error),
contentDescription = stringResource(R.string.description),
contentScale = ContentScale.Crop,
modifier = Modifier.clip(CircleShape)
)
rememberAsyncImagePainterUse rememberAsyncImagePainter only when you need a Painter instead of a composable (e.g., for Canvas or Icon) or when you need to observe the loading state manually.
[!WARNING]
rememberAsyncImagePainterdoes not detect the size your image is loaded at on screen and always loads the image with its original dimensions by default. UseAsyncImageunless aPainteris strictly required.
val painter = rememberAsyncImagePainter(
model = ImageRequest.Builder(LocalContext.current)
.data("https://example.com/image.jpg")
.size(Size.ORIGINAL) // Explicitly define size if needed
.build()
)
SubcomposeAsyncImageUse SubcomposeAsyncImage when you need a custom slot API for different states (Loading, Success, Error).
[!CAUTION] Subcomposition is slower than regular composition. Avoid using
SubcomposeAsyncImagein performance-critical areas likeLazyColumnorLazyRow.
SubcomposeAsyncImage(
model = "https://example.com/image.jpg",
contentDescription = null,
loading = {
CircularProgressIndicator()
},
error = {
Icon(Icons.Default.Error, contentDescription = null)
}
)
ImageLoader instance for the entire app to share the disk/memory cache.crossfade(true) in ImageRequest for a smoother transition from placeholder to success.contentScale is set appropriately to avoid loading larger images than necessary.AsyncImage over other variants.contentDescription or set it to null for decorative images.crossfade(true) for better UX.SubcomposeAsyncImage in lists.ImageRequest for specific needs like transformations (e.g., CircleCropTransformation).まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Expert checklist and prompts for auditing and fixing Android accessibility issues, especially in Jetpack Compose.
日本語の概要は準備中です。原文の説明を表示しています。
Expert guidance on setting up and maintaining a modern Android application architecture using Clean Architecture and Hilt. Use this when asked about project structure, module setup, or dependency injection.
日本語の概要は準備中です。原文の説明を表示しています。
Authoritative rules and patterns for production-quality Kotlin Coroutines onto Android. Covers structured concurrency, lifecycle integration, and reactive streams.
日本語の概要は準備中です。原文の説明を表示しています。
Guidance on implementing the Data Layer using Repository pattern, Room (Local), and Retrofit (Remote) with offline-first synchronization.
日本語の概要は準備中です。原文の説明を表示しています。
Production-ready scripts for Android app testing, building, and automation. Provides semantic UI navigation, build automation, log monitoring, and emulator lifecycle management. Optimized for AI agents with minimal token output.
日本語の概要は準備中です。原文の説明を表示しています。
Expert guidance on setting up scalable Gradle build logic using Convention Plugins and Version Catalogs.
日本語の概要は準備中です。原文の説明を表示しています。