Repository navigation
|
My app was flagged or rejected on Google Play for this. Hardcoded colors ignoring high contrast settings. Which guideline is this, how do I find it in my project, and how do I fix it before I resubmit? |
Replies: 1 comment
|
Guideline. User Experience - Accessibility (Google Play) Severity in the playbook. medium What triggers it. Hardcoded hex color strings in layout files or hardcoded Color objects in Compose without using theme attributes. What to search your code for. How to fix it. Reference semantic colors or color resources so the app automatically respects high contrast themes. The guard reports this as This is a maintainer FAQ for app-store-compliance, an open playbook and pre-submission guard for App Store and Google Play review. Run |
Guideline. User Experience - Accessibility (Google Play)
Severity in the playbook. medium
What triggers it. Hardcoded hex color strings in layout files or hardcoded Color objects in Compose without using theme attributes.
What to search your code for.
color,textColor,Color(0xFFHow to fix it. Reference semantic colors or color resources so the app automatically respects high contrast themes.
The guard reports this as
ANDROID-ACCESSIBILITY-HIGHCONTRAST. The full pattern is in data/rejection-patterns.json.This is a maintainer FAQ for app-store-compliance, an open playbook and pre-submission guard for App Store and Google Play review. Run
bash scripts/install.sh install, then run the gua…