mobile-android-design – skill Thiết kế & UI cho agent AI
Nắm vững Material Design 3 và các mẫu Jetpack Compose để xây dựng ứng dụng Android native. Dùng khi thiết kế giao diện Android, triển khai Compose UI hoặc tuân theo hướng dẫn Material Design của Google.
Cài skill mobile-android-design bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/mobile-android-design-b10d7.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /mobile-android-design – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/mobile-android-design-b10d7.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $mobile-android-design – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/mobile-android-design-b10d7.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /mobile-android-design – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/mobile-android-design-b10d7.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /mobile-android-design – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
Android Mobile Design
Master Material Design 3 (Material You) and Jetpack Compose to build modern, adaptive Android applications that integrate seamlessly with the Android ecosystem.
When to Use This Skill
- Designing Android app interfaces following Material Design 3
- Building Jetpack Compose UI and layouts
- Implementing Android navigation patterns (Navigation Compose)
- Creating adaptive layouts for phones, tablets, and foldables
- Using Material 3 theming with dynamic colors
- Building accessible Android interfaces
- Implementing Android-specific gestures and interactions
- Designing for different screen configurations
Detailed section: Core Concepts
Originally a 9201-byte section in this SKILL.md. Moved to references/details.md to fit Codex's 8 KB skill body cap.
Quick Start Component
@Composable
fun ItemListCard(
item: Item,
onItemClick: () -> Unit,
modifier: Modifier = Modifier
) {
Card(
onClick = onItemClick,
modifier = modifier.fillMaxWidth(),
shape = RoundedCornerShape(12.dp)
) {
Row(
modifier = Modifier
.padding(16.dp)
.fillMaxWidth(),
verticalAlignment = Alignment.CenterVertically
) {
Box(
modifier = Modifier
.size(48.dp)
.clip(CircleShape)
.background(MaterialTheme.colorScheme.primaryContainer),
contentAlignment = Alignment.Center
) {
Icon(
imageVector = Icons.Default.Star,
contentDescription = null,
tint = MaterialTheme.colorScheme.onPrimaryContainer
)
}
Spacer(modifier = Modifier.width(16.dp))
Column(modifier = Modifier.weight(1f)) {
Text(
text = item.title,
style = MaterialTheme.typography.titleMedium
)
Text(
text = item.subtitle,
style = MaterialTheme.typography.bodyMedium,
color = MaterialTheme.colorScheme.onSurfaceVariant
)
}
Icon(
imageVector = Icons.Default.ChevronRight,
contentDescription = null,
tint = MaterialTheme.colorScheme.onSurfaceVariant
)
}
}
}Best Practices
1. Use Material Theme: Access colors via MaterialTheme.colorScheme for automatic dark mode support
2. Support Dynamic Color: Enable dynamic color on Android 12+ for personalization
3. Adaptive Layouts: Use WindowSizeClass for responsive designs
4. Content Descriptions: Add contentDescription to all interactive elements
5. Touch Targets: Minimum 48dp touch targets for accessibility
6. State Hoisting: Hoist state to make components reusable and testable
7. Remember Properly: Use remember and rememberSaveable appropriately
8. Preview Annotations: Add @Preview with different configurations
Common Issues
- Recomposition Issues: Avoid passing unstable lambdas; use
remember - State Loss: Use
rememberSaveablefor configuration changes - Performance: Use
LazyColumninstead ofColumnfor long lists - Theme Leaks: Ensure
MaterialThemewraps all composables - Navigation Crashes: Handle back press and deep links properly
- Memory Leaks: Cancel coroutines in
DisposableEffect
Skill liên quan
- mobile-ios-design – Thành thạo iOS Human Interface Guidelines và các mẫu SwiftUI để xây dựng ứng dụng iOS…
- impeccable – Hướng dẫn thiết kế frontend, do upstream duy trì (impeccable).
- nextjs-app-router-patterns – Làm chủ Next.js 14+ App Router với Server Components, streaming, parallel routes và truy…
- inspecting-hermes-desktop-dom – Đọc DOM/CSS trực tiếp của ứng dụng Hermes desktop qua CDP.
- ip-as-logo – Thiết kế logo linh vật IP tối giản, dễ thương, đọc rõ ở kích thước 32px.
- openpiv – Thực hiện phân tích Particle Image Velocimetry (PIV) với OpenPIV. Dùng khi trích xuất…
- design-system – Ghi nhận bản sắc thương hiệu của người dùng chỉ một lần qua trình hướng dẫn 10 câu hỏi…
- optimize-for-gpu – Tăng tốc Python khoa học trên phần cứng NVIDIA bằng GPU và kiểm tra kết quả đúng và…