Skillshub android-resources
Standards for Strings, Drawables, and Localization. Use when managing Android resources, drawables, or adding localization support. (triggers: strings.xml, **/*Screen.kt, stringResource, plurals, R.string)
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-resources" ~/.claude/skills/comeonoliver-skillshub-android-resources && rm -rf "$T"
manifest:
skills/HoangNguyen0403/agent-skills-standard/android-resources/SKILL.mdsource content
Android Resources Standards
Priority: P2
Implementation Guidelines
Strings & Localization
- Define in XML: All UI text must be in
. Usestrings.xml
in Compose.stringResource(R.string.*) - Formatting: Use format args (
,%s
) instead of concatenation. Use%d
(e.g.,plurals
) for quantity-sensitive strings.<item quantity="one"> - Parity: Maintain Localizable.strings (iOS) parity where possible for shared features.
- Dynamic Access: Use
for dynamic lookups.context.getString(R.string.id, args)
Assets / Drawables
- Formats: Prefer VectorDrawables (
) over RASTER images. Scale cleanly across density buckets (mdpi, hdpi, xhdpi, xxhdpi)..xml - Plurals: Use
for quantity-sensitive strings.resources.getQuantityString(R.plurals.items, count, count) - Dark Mode: Support
via theConfiguration.UI_MODE_NIGHT
qualifier orvalues-night/
tokens. Never use hardcoded hex colors in Layouts/Composables.MaterialTheme - Themes: Map all colors to Design Tokens (primary, surface, error) for consistent skinning.
Anti-Patterns
- No String Concatenation in UI: Use format args (
,%s
) in strings.xml instead.%d - No Hardcoded UI Text: All visible strings must be defined in strings.xml.