Android xml views
Skill ComeOnOliver/skillshub/skills/HoangNguyen0403/agent-skills-standard/android-xml-views
Standards for ViewBinding, RecyclerView, and XML Layouts. Use when implementing XML layouts, ViewBinding, or RecyclerView adapters in Android. (triggers: layout/*.xml, **/*Binding.java, **/*Binding.kt, ViewBinding, ConstraintLayout, RecyclerView)From its SKILL.md
npx -y skills add ComeOnOliver/skillshub --skill android-xml-viewsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
1.2 KB, 194 tokens by cl100k_base, as published. Nobody here has run it
Android XML Views Standards
Priority: P1
Implementation Guidelines
ViewBinding
- Standard: Use ViewBinding for all XML layouts.
- Synthetics:
kotlin-android-extensionsis Dead. Remove it. - KAPT: Avoid DataBinding unless strictly necessary (impacts build speed).
RecyclerView
- Adapter: Always inherit
ListAdapter(wraps AsyncListDiffer). - Updates: Provide a proper
DiffUtil.ItemCallback. NEVER callnotifyDataSetChanged().
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
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.