Skillshub 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)
install
source · Clone the upstream repo
git clone https://github.com/ComeOnOliver/skillshub
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ComeOnOliver/skillshub "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/HoangNguyen0403/agent-skills-standard/android-xml-views" ~/.claude/skills/comeonoliver-skillshub-android-xml-views && rm -rf "$T"
manifest:
skills/HoangNguyen0403/agent-skills-standard/android-xml-views/SKILL.mdsource content
Android XML Views Standards
Priority: P1
Implementation Guidelines
ViewBinding
- Standard: Use ViewBinding for all XML layouts.
- Synthetics:
is Dead. Remove it.kotlin-android-extensions - KAPT: Avoid DataBinding unless strictly necessary (impacts build speed).
RecyclerView
- Adapter: Always inherit
(wraps AsyncListDiffer).ListAdapter - Updates: Provide a proper
. NEVER callDiffUtil.ItemCallback
.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.*