HoangNguyen0403

Android Resources & Localization

Standards for Strings, Drawables, and Localization

HoangNguyen0403 501 148 Updated 4mo ago

Resources

1
GitHub

Install

npx skillscat add hoangnguyen0403/agent-skills-standard/android-resources-localization

Install via the SkillsCat registry.

SKILL.md

Android Resources Standards

Priority: P2

Implementation Guidelines

Strings

  • No Hardcoding: UI text MUST be in strings.xml.
  • Formatting: Use format args (%s, %d) instead of concatenation.
  • Plurals: Use <plurals> for quantities.

Assets / Drawables

  • Vectors: Prefer VectorDrawables (.xml) over RASTER images.
  • Dark Mode: Use values-night or Theme attributes (MaterialTheme.colorScheme.primary) instead of hardcoded colors.

Anti-Patterns

  • Concatenation in UI: **No String Concat**: Use resource templates.
  • Hardcoded Strings: **No hardcoded text**: Extract to XML.

References