Back to skills
SKILL.md
Android Xml Views
ASecurityImplement ViewBinding, RecyclerView, and XML layouts correctly on Android. Use when working with XML layouts, ViewBinding, or RecyclerView adapters in legacy Android projects.
- 549 stars
- 0 votes
- 0 copies
- 3 views
- Added June 6, 2026
Works with
Security analysis
100/100Pro scans all 3 files and shows the line behind each finding
npx -y skills add HoangNguyen0403/agent-skills-standard --skill android-xml-views --agent claude-codeAre you the author of Android Xml Views?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/hoangnguyen0403-android-xml-views)---
name: android-xml-views
description: Implement ViewBinding, RecyclerView, and XML layouts correctly on Android. Use when working with XML layouts, ViewBinding, or RecyclerView adapters in legacy Android projects.
metadata:
triggers:
files:
- 'layout/*.xml'
- '**/*Binding.java'
- '**/*Binding.kt'
keywords:
- ViewBinding
- ConstraintLayout
- RecyclerView
---
# Android XML Views Standards
## **Priority: P1**
## Implementation Guidelines
### ViewBinding
- **Standard**: Use ViewBinding for all XML layouts.
- **Synthetics**: `kotlin-android-extensions` Dead. Remove it.
- **KAPT**: Avoid DataBinding unless strictly necessary (impacts build speed).
### RecyclerView
- **Adapter**: Always inherit `ListAdapter` (wraps AsyncListDiffer).
- **Updates**: Provide proper `DiffUtil.ItemCallback`. NEVER call `notifyDataSetChanged()`.
### Layouts
- **ConstraintLayout**: Use for complex flat hierarchies.
- **Performance**: Avoid deep nesting (LinearLayout inside LinearLayout).
## Anti-Patterns
- **No findViewById**: Deprecated. Use ViewBinding for all XML layouts.
- **No kotlin-android-extensions**: Deprecated. Remove all `import kotlinx.android.synthetic.*`.
## References
- [ViewBinding & Adapter](references/implementation.md)Files in this skill
- SKILL.md
- evals/evals.json
- references/implementation.md
Attribution
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.