agentsclimarketplace

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

Install
npx -y skills add ComeOnOliver/skillshub --skill android-xml-views

Assembled 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-extensions is 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 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

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.