Mosmoxmosmox

Mosmox journal

In focus — accessibility.

A selection of publications grouped under the accessibility tag.

Dark Mode: Why Adding a Toggle Is Not Enough

Dark Mode: Why Adding a Toggle Is Not Enough

Dark mode is not a colour inversion or a decorative toggle in settings. It has to preserve hierarchy, contrast, readability and clear states across the whole product: from the home screen to the rarely opened account deletion dialog.

System-wide dark mode arrived with iOS 13 and Android 10, and since then users expect apps to adapt automatically. In our projects we regularly see the same picture: dark mode is "added" in a sprint, and then for six months the team fixes invisible borders, "glowing" images and red errors that suddenly became unreadable on a dark background. Here's how to do it once and do it right.

What breaks with a quick inversion

  • Grey text loses contrast. A shade that worked well on white can drop below 4.5:1 on a dark background.
  • Shadows disappear. On a dark surface a shadow is barely visible, so cards blend into the background unless depth is conveyed another way.
  • Borders become too bright or, conversely, vanish entirely.
  • Images glare. Illustrations and photos with white backgrounds look like a flashlight in the middle of the screen.
  • Statuses lose distinction. Saturated red and green on a dark background either "vibrate" or become too dark.
  • Third-party components don't adapt. WebViews, payment SDKs, maps and support chat stay light and break consistency.

Why the same colours don't work on a dark background

Numbers make the strongest case. We calculated the contrast of typical light-theme colours on white and on the #121212 dark surface recommended by Material Design.

ColourOn whiteOn #121212Verdict
#B00020 (dark "error" red)7.33:12.56:1unreadable on dark
#2E7D32 (dark "success" green)5.13:13.65:1fails for normal text
#1976D2 (blue accent)4.6:14.07:1borderline; text needs a lighter tone
#CF6679 (lighter red)—5.2:1suitable for errors in dark mode
#90CAF9 (light blue)—10.71:1a reliable dark-mode accent
White at 60% opacity (secondary text)—7.16:1passes
White at 38% opacity (disabled)—3.57:1acceptable only for inactive states

The takeaway is simple: every accent and status colour needs a separate, usually lighter and less saturated tone for dark mode. Material Design recommends exactly that — using lighter tones of the palette instead of saturated primaries. We covered contrast thresholds in more detail in our guide to large text, contrast and scaling.

Start with roles, not hex values

Dark mode is impossible to maintain if the code is full of hundreds of specific colours. You need a layer of semantic tokens: surface, elevated surface, primary text, secondary text, border, accent, danger, success, warning. Each token has two values — light and dark — and components reference tokens only.

  • iOS provides this out of the box: system colours such as systemBackground, secondarySystemBackground, label and secondaryLabel already adapt to the theme. Custom colours are defined in the Asset Catalog with Any and Dark variants, plus a High Contrast variant.
  • Android uses values-night and drawable-night resources and a DayNight-based theme, and in Jetpack Compose darkColorScheme and lightColorScheme in MaterialTheme.
  • Depth. Instead of shadows, dark mode conveys elevation with a lighter tone: the higher the element, the lighter the surface. Apple also distinguishes base and elevated backgrounds for modal screens.
  • Black or dark grey. Material recommends #121212 instead of pure black: dark grey shows shadows and surface levels, and the extreme contrast of white text on black makes letters look blurry for some people.

Images, illustrations and third-party content

  • Prepare separate variants for illustrations and icons, or use vector assets that take their colours from tokens.
  • Don't invert photos, but you can slightly reduce their brightness or add a subtle border so they don't "glow".
  • Partner logos often exist only in a light version — plan a backing plate for them.
  • For WebView on Android 13+, enable algorithmic darkening or pass the theme to the web page through prefers-color-scheme.
  • Check whether payment, maps and support SDKs support dark mode and how to configure them.

On energy efficiency: a 2021 Purdue University study showed that on OLED screens, switching to dark mode at 100% brightness saves 39–47% power on average, but at typical 30–50% brightness only 3–9%. So dark mode is primarily about comfort and accessibility, not battery life.

How to check quality

  1. Walk through key scenarios in both themes, and switch themes in the middle of a scenario: the app must not lose state or entered data.
  2. Lower screen brightness to the minimum and check that field borders and dividers are visible.
  3. Turn on larger text and Increase Contrast — dark mode needs a high-contrast variant too.
  4. Check contrast for the default, disabled, pressed, focus and error states of each component, not a single screenshot.
  5. Review all images, illustrations and empty states.
  6. Open every screen with third-party content: WebView, payments, maps, chat.
  7. Add screenshot tests for both themes so new components don't break the system.

Typical mistakes

  • Colours hard-coded inside components, bypassing tokens: these are the first to stay white.
  • A toggle only in the app's settings, with no "Match system" option.
  • Pure black backgrounds with bright white text in large blocks.
  • Saturated brand colours without adaptation, which "vibrate" on a dark background.
  • Relying on Android's Force Dark as the final solution: it's a quick start, not design.
  • Testing only the home screen while dialogs, bottom sheets and push-driven screens go unchecked.

Implementation checklist

  1. Create semantic colour tokens and ban hex values inside components.
  2. Pick dark variants for every accent and status colour with at least 4.5:1 contrast for text.
  3. Convey depth through surface tone, not just shadow.
  4. Prepare image variants and backing plates for logos.
  5. Configure dark mode in WebView and third-party SDKs.
  6. Add a "Match system" option and make it the default.
  7. Cover both themes with screenshot tests and a manual pass through key scenarios.

Dark mode is a test of the design system: if the team can't explain a colour's role, it's hard to scale. And the best dark mode doesn't look like a different product — users recognise components, understand statuses and perform the same actions without relearning anything. If the interface has animations, check them too: dark transitions with abrupt brightness jumps are tiring, as we discussed in our article on animation in mobile interfaces.

Sources: Android Developers: What a great user experience looks like; Android Developers: Implement dark theme; Apple Human Interface Guidelines: Dark Mode; Material Design: Dark theme; Purdue University: Dark mode may not save your phone's battery life as much as you think.

How to Design Mobile Apps for People with Low Vision

How to Design Mobile Apps for People with Low Vision

People with low vision use apps in very different ways: with screen magnification, system accessibility features, high contrast, colour inversion or a screen reader. The team's job is not to build a separate "simplified" version, but to avoid breaking the core experience when someone turns these settings on.

Low vision is neither blindness nor a single specific condition. Some people see only the centre of an image, others only the periphery; some struggle with blur or heightened light sensitivity. So there's no universal recipe, but there is a set of checks that, in our projects, consistently uncovers most barriers before release.

Who these users are and what they use

According to the WHO, at least 2.2 billion people worldwide have a near or distance vision impairment. The most common causes are uncorrected refractive errors, cataract, glaucoma, age-related macular degeneration and diabetic retinopathy. Among older people, the share of those who need enlarged text grows quickly, which means your "regular" audience also changes over the years.

Both platforms offer a whole set of system tools, and each of them stress-tests your layout in its own way.

TooliOS / AndroidWhat breaks most often
Larger textDynamic Type up to AX5 / font scale up to 200% (Android 14+)truncated labels, fixed heights, buttons pushed off-screen
Enlarging the whole UIDisplay Zoom / "Display size"broken grids, overlapping elements
Screen magnifierZoom / Magnificationthe user misses toasts and banners outside the magnified area
Increased contrastIncrease Contrast / "High contrast text"custom colours with no high-contrast variant
Colour inversionSmart Invert / "Color inversion"photos and videos turn into negatives
Colour filtersColor Filters / "Color correction"statuses that differ only by colour
Screen readerVoiceOver / TalkBackunlabelled icons, illogical focus order

Some of these issues have simple technical fixes. For example, to stop Smart Invert on iOS from turning photos into negatives, set the accessibilityIgnoresInvertColors property on images and video. But most barriers are introduced at the design level, and that's where they are cheapest to remove.

Core barriers to check

  • Fixed widths. Text and buttons must not disappear or get clipped when the font grows while the container width stays the same.
  • Unlabelled icons. An icon needs a text label or at least an accessible name for the screen reader, and must never be the only carrier of meaning.
  • Invisible focus. Focus must be noticeable and logical, especially for people navigating with a keyboard or switch.
  • Errors shown by colour only. A thin red border is easy to miss. You need text next to the field and an icon.
  • Horizontal scrolling. Magnification shouldn't force people to scroll text in two directions. On the web, WCAG 1.4.10 Reflow covers this; for apps the principle is the same: content should reflow into a single column.
  • Text baked into images. Text inside a picture doesn't scale, isn't read aloud and isn't translated.

We covered choosing fonts, contrast and component behaviour under magnification in detail in our guide to large text, contrast and scaling.

Screen magnification: the "keyhole" problem

A person using a magnifier sees only a small part of the screen at a time — sometimes a quarter or less. That changes the rules of composition.

  • Keep related things together. A label and its value, a field and its error, a price and the buy button should sit close to each other, not on opposite edges of the screen.
  • Don't hide important information in transient messages. A standard Android Toast disappears after roughly 2 or 3.5 seconds, and a magnifier user simply won't see it. Show critical statuses persistently until the person dismisses them.
  • Make feedback predictable in location. If a tap changes something in the opposite corner, a magnifier user will conclude that nothing happened.
  • Avoid auto-advancing carousels. Content that moves on its own can't be read piece by piece. Let people stop the motion.

Test real tasks, not individual components

What looks acceptable for a single component in Storybook or Figma can become unusable in a full scenario. So we test tasks end to end.

  1. Pick five scenarios: search, filling in a form, confirming a payment, reading long text, recovering from an error.
  2. Walk through each one at maximum font size, then with the magnifier at 3–5× zoom.
  3. Repeat with Increase Contrast and colour inversion on.
  4. Walk the same scenarios with VoiceOver and TalkBack: many people with low vision combine magnification with speech.
  5. Log every issue as a concrete defect: screen, setting, what exactly is inaccessible, expected behaviour.
  6. Ask at least one person who uses magnification daily to go through one key scenario. We regularly see such a session uncover problems that all internal checks missed.

Android quality guidelines put consistent interactions and support for different devices and screen sizes at the centre. For accessibility, that means scaling and system settings must be considered at the layout architecture level, not patched before release.

Typical mistakes

  • A separate "low-vision mode" instead of supporting system settings: it's rarely discovered and even more rarely kept up to date.
  • Blocking zoom in WebView screens through viewport settings.
  • Ultra-thin fonts and Light weights for body text.
  • Grey on grey for "secondary" information that actually matters: delivery date, plan terms.
  • Test findings phrased as "make it more accessible" with no specifics, so nobody can pick them up.

How to build it into the process

Add accessibility checks at three points: mock-ups, components and feature acceptance. In mock-ups, the designer shows states at maximum font size. In components, the developer guarantees behaviour under magnification and semantics for the screen reader. At acceptance, QA walks the scenario with system accessibility settings on. We collected the general checklist for the whole team in our article on mobile app accessibility.

Checklist

  1. Every screen scrolls and has no fixed-height containers with text.
  2. Related elements sit together; critical statuses don't disappear automatically.
  3. Photos and videos behave correctly under Smart Invert.
  4. Statuses have text and an icon, not just colour.
  5. Every icon has an accessible name.
  6. Five key scenarios have been walked with maximum font size, magnifier, high contrast and a screen reader.
  7. Issues found are logged as concrete defects with reproduction steps.

An accessible product reaches further than the audience that explicitly identifies as disabled. It works better for everyone who enlarges text, is tired at the end of the day, uses the phone one-handed or has temporary vision limits after surgery.

Sources: Android Developers: What a great user experience looks like; WHO: Blindness and vision impairment; Apple Human Interface Guidelines: Accessibility; Android Accessibility Help: Magnification; W3C: Understanding SC 1.4.10 Reflow.

Large Text, Contrast, and Scaling: A Practical Guide to Mobile UI

Large Text, Contrast, and Scaling: A Practical Guide to Mobile UI

A mobile interface has to stay readable beyond the designer's mock-up. A user may enlarge the system font, raise contrast, turn on bold text or a screen reader, or look at the screen in bright sunlight. If the layout falls apart under those conditions, it's a product problem, not the user's personal problem.

This guide collects what we apply on our own projects: how system scaling actually works on iOS and Android, which contrast numbers to check, how to build components that survive 200% text, and what breaks most often.

How system scaling works

On iOS, text size is controlled by Dynamic Type. The user picks one of seven standard sizes, and in the accessibility settings five more enlarged ones (AX1 to AX5). The Body style is 17 pt by default and 53 pt at the largest AX5 size, roughly three times bigger. Separate Bold Text and Increase Contrast settings also change how the interface looks.

On Android, text size is defined in sp units, multiplied by the system font scale. Starting with Android 14, that scale can reach 200%, and scaling is non-linear: small text grows more, while large headings grow more moderately so they don't take over the screen. Separately from the font, the user can change "Display size", which enlarges all interface elements, not just text.

The practical takeaway is simple: you need to check not one but at least three states — default, enlarged and maximum — and combine them with long localised strings.

Typography that scales

The core rule: no fixed text sizes that bypass the system. On iOS, use text styles (body, headline, caption) or UIFontMetrics for custom fonts; in SwiftUI, a custom font can be tied to a style via relativeTo. On Android, specify text sizes only in sp, and in Jetpack Compose use the MaterialTheme type scale.

  • No fixed heights. Cards, buttons and list rows must grow with the text. A minimum height is fine; a maximum height is not.
  • Don't truncate content. The user must see the full product name, the error text and the primary action label. Truncation with an ellipsis is acceptable only for secondary data, and then there should be a way to see the full text.
  • Re-flow the layout. At large sizes, a horizontal "icon — text — value" row should become vertical. SwiftUI offers the dynamicTypeSize.isAccessibilitySize check and the ViewThatFits container for this.
  • Line height. Define line height relative to font size rather than as a fixed number, or lines will overlap at large sizes.
  • Scrolling. Every screen, even a short dialog, must be able to scroll. At maximum font size the "Confirm" button often ends up off-screen.

From our project experience: Ukrainian strings are usually 15–30% longer than English ones, so a layout drawn in English most often breaks during localisation. This is a studio estimate, not a formal norm, but it's always worth building in headroom.

Contrast is not just black and white

WCAG criterion 1.4.3 requires a contrast of at least 4.5:1 for normal text and 3:1 for large text. Criterion 1.4.11 extends the 3:1 requirement to icons, input field borders and visual component states. Here's how that plays out with typical colours.

Colour pairContrastVerdict
#767676 on white4.54:1the lightest grey that passes for normal text
#999999 on white2.85:1fails even for icons and borders
#BDBDBD on white (typical field border)1.88:1the field is nearly invisible in sunlight
#4CAF50 on white ("success" green)2.78:1unsuitable for text, needs a darker shade
#2E7D32 on white5.13:1passes for text
#D32F2F on white ("error" red)4.98:1passes for text
White on #12121218.73:1a solid base for dark theme

Check not only body text but also placeholders, helper text under fields, disabled states, badges, and text on images and banners. Disabled elements are formally exempt from contrast requirements, but if the user can't tell that a button is inactive and why, it's still a UX problem.

Colour must never be the only signal

Colour vision deficiency, mostly red-green, affects about 8% of men and 0.5% of women of Northern European descent. For them, a red and a green field border can look the same. So always duplicate status through another channel: text, an icon, shape or position. A simple test is to switch the phone to greyscale and walk through a key scenario. If the meaning survives, you're on the right track. We described how these principles fit into a broader review in our article on mobile app accessibility.

Step-by-step screen check

  1. Set the maximum system font: AX5 in iOS accessibility settings, the largest font scale on Android. For automation on Android you can use adb shell settings put system font_scale 2.0.
  2. Walk through key scenarios: sign-up, search, checkout, settings. Log truncated text, overlaps and buttons pushed off-screen.
  3. Switch to the longest supported language and repeat.
  4. Turn on Bold Text and Increase Contrast on iOS, and "High contrast text" on Android.
  5. Check the contrast of new colours with a tool: Accessibility Inspector, Accessibility Scanner or a Figma plugin.
  6. Switch on greyscale and make sure statuses are distinguishable without colour.
  7. Check focus, announcements and touch targets: at large font sizes elements shift, and touch areas can overlap.
  8. Add screenshot tests at maximum font size for key components so regressions are caught automatically.

Typical mistakes

  • Mock-ups are checked only at the designer's font size and in one language.
  • A developer "locks" the text size so a card won't break, disabling Dynamic Type for everyone.
  • A light-grey palette for an "airy" look that fails 4.5:1.
  • Input field borders below 3:1: you can't see the field until you tap it.
  • Text over a photo without a scrim: readable on some images, not on others.
  • Unlabelled icons in the bottom navigation that stay tiny at large font sizes because they're set in dp and never scale.

Design system checklist

  1. The type scale is tied to iOS system styles and to sp on Android.
  2. Every text and background colour pair is documented with its contrast ratio.
  3. Every component has a defined behaviour for accessibility font sizes.
  4. Statuses have a text or icon counterpart, not just colour.
  5. Screenshot tests cover default and maximum font sizes.
  6. The Definition of Done includes a check at maximum font size and in the longest language.

Accessible typography rarely requires complex solutions. Most often it needs component-system discipline and a willingness not to sacrifice content for the decorative precision of a mock-up.

Sources: Android Developers: What a great user experience looks like; Android 14: Non-linear font scaling to 200%; Apple Human Interface Guidelines: Typography; W3C: Understanding SC 1.4.3 Contrast (Minimum); W3C: Understanding SC 1.4.11 Non-text Contrast.

Mobile App Accessibility: What a Product Team Should Check

Mobile App Accessibility: What a Product Team Should Check

Mobile app accessibility is not a special mode for a small group of people. It decides whether someone can read the text, tap a control, understand a message and finish a task under any conditions: with enlarged text, with a screen reader, one-handed on a bus or in bright sunlight.

Across our projects we see the same pattern: accessibility problems almost never arrive as a separate "accessibility ticket". They accumulate in components, colours and copy from the very first sprint, and fixing them right before release costs several times more. Below is what a product team can check on its own, with concrete thresholds, tools and an order of work.

Why accessibility is a product issue, not charity

According to the WHO, about 1.3 billion people, or 16% of the world's population, live with significant disability, and at least 2.2 billion have some form of vision impairment. Add situational limitations on top: a broken arm, a child in your arms, noise, glare on the screen, older age. An interface that works for a VoiceOver user usually works better for everyone else as well.

There is also a regulatory dimension. Since 28 June 2025 the European Accessibility Act applies in the EU: accessibility requirements cover, among others, e-commerce, banking services and transport apps sold on the EU market. Conformance is usually assessed against WCAG 2.1/2.2 level AA through the EN 301 549 standard. If your product targets European users, accessibility becomes a legal risk, not just a quality concern.

Minimum thresholds worth knowing by heart

Vague wording like "contrast is sufficient" doesn't survive a review. The team needs numbers that a tool can verify.

What we checkThresholdSource
Contrast of normal textat least 4.5:1WCAG 2.2, criterion 1.4.3 (AA)
Contrast of large text (18 pt and up, or 14 pt bold)at least 3:1WCAG 2.2, 1.4.3
Contrast of icons, field borders, component statesat least 3:1WCAG 2.2, 1.4.11
Touch target44×44 pt on iOS, 48×48 dp on AndroidApple HIG, Android accessibility guidelines
Text resizingup to 200% without loss of content or functionWCAG 2.2, 1.4.4; Android 14 allows font scaling up to 200%
Colour as information carriernever the only meansWCAG 2.2, 1.4.1
Visible focusfocus is always visible and not obscuredWCAG 2.2, 2.4.7 and 2.4.11

Note that the touch target is not the same as the icon size. An icon can be 24×24 dp as long as the invisible touch area around it is 48×48 dp. We covered target sizes and reach zones in more detail in our article on one-handed design.

The baseline checklist

Visual layer

  • Contrast of text, icons and field borders meets the thresholds in the table, including disabled and error states.
  • The interface works with the largest system font: iOS Dynamic Type up to the AX5 size, Android at 200% scale.
  • Status is never conveyed by colour alone: an error has text and an icon, not just a red border.
  • Animations are simplified when Reduce Motion (iOS) or "Remove animations" (Android) is on.

Semantic layer

  • Every interactive element has a meaningful name: not "button" but "Add to cart".
  • The element's role is announced correctly: a button as a button, a switch with its "on" or "off" state.
  • Decorative images are hidden from the screen reader; meaningful ones have a description.
  • Focus order follows reading order, and after a modal closes, focus returns to the element that opened it.

Content layer

  • Errors explain the problem and how to fix it, rather than showing a code.
  • Form fields have persistent labels, not just a placeholder that disappears while typing. More on that in our article on mobile forms.
  • Status changes (saved successfully, network error) are announced by the screen reader even when focus stays where it is.

How to test: a one-sprint routine

Automated checks find part of the problems — contrast, missing labels, small touch targets — but they don't replace real scenarios. That's why we recommend combining both approaches.

  1. Automated pass. On Android, run Accessibility Scanner on key screens and add AccessibilityChecks to your Espresso tests. On iOS, use Accessibility Inspector in Xcode and, since Xcode 15, the performAccessibilityAudit() method in UI tests.
  2. Screen reader. Walk through the three main scenarios with VoiceOver and TalkBack with your eyes closed or the screen curtain on. Log every point where you can't tell what's happening.
  3. Maximum font size. Set the system text size to the maximum and repeat the same scenarios. Look for truncated text, overlapping buttons and screens that don't scroll.
  4. Non-touch control. Check Switch Access on Android and Full Keyboard Access on iOS: can every element be reached, and is it clear where focus currently is?
  5. Physical conditions. Take the phone outside, lower the brightness, turn on greyscale. It's a five-minute test that finds contrast issues better than any mock-up.
  6. Real users. Once a quarter, invite at least two people who use a screen reader or magnification every day. Even one session reshapes backlog priorities.

Typical team mistakes

  • Accessibility at the end of the release. When the check happens a week before publishing, fixes get postponed "for later", and later never comes.
  • Custom components without semantics. A home-made toggle drawn from several views looks great, but for TalkBack it's a set of unnamed elements. Standard platform components get semantics for free.
  • Fixed heights for cards and buttons. This is exactly what breaks the interface with enlarged text: copy gets cut off and the action becomes unreachable.
  • Identical labels for different elements. Ten "More" buttons in a list don't help a screen reader user understand what each one refers to.
  • Trusting automation alone. A scanner won't tell you that the focus order is illogical or that an error message is confusing.

How to build accessibility into the process

The cheapest place for accessibility is the design system. If the button, text field and card already have correct contrast, minimum touch targets, semantic roles and behaviour under large text, every new screen inherits those properties automatically. Pay special attention to the primary action button: it's the element that most often becomes unreachable when text is scaled.

The second place is the Definition of Done. We add three short items: the screen has been walked through with VoiceOver or TalkBack, checked at maximum font size, and any new colours have been checked for contrast. That takes 15–20 minutes per feature but removes most regressions.

The third is design review. Annotate the mock-ups: focus order, screen reader labels, overflow behaviour. A developer shouldn't have to guess what an icon-only button should announce.

Product team checklist

  1. Define 3–5 key scenarios that must be fully accessible.
  2. Record the thresholds from the table above in the design system and developer guidelines.
  3. Add automated checks to CI: AccessibilityChecks for Espresso, performAccessibilityAudit() for XCTest.
  4. Put a manual screen reader and maximum-font check into the Definition of Done.
  5. Keep a dedicated tag for accessibility defects and review them during planning.
  6. Once a quarter, run a session with real users of assistive technologies.
  7. If the product ships to the EU market, verify WCAG 2.2 AA conformance in light of the European Accessibility Act.

Sources: Android Developers: What a great user experience looks like; Android Developers: Make apps more accessible; Apple Human Interface Guidelines: Accessibility; W3C: Web Content Accessibility Guidelines (WCAG) 2.2; WHO: Disability fact sheet; European Commission: European Accessibility Act.

Mobile Forms: How to Reduce Data-Entry Errors

Mobile Forms: How to Reduce Data-Entry Errors

A form on a smartphone competes for attention with a small screen, a virtual keyboard, an unstable network and interruptions. The keyboard covers up to half the screen, a finger hits the neighbouring field, a notification breaks the user’s focus. If a form asks for more than the next step requires, errors and abandonment are the predictable result.

In audits we almost always find the same form problems: the wrong keyboard, no autofill, an error shown above the form instead of next to the field, and data lost after a failed request. Each of them takes hours to fix, not weeks. Below is a practical way to work on a form, a table of field settings for iOS and Android, and a pre-release checklist.

Start with the data

For each field, ask: why is it needed now, can the value be taken from the device or earlier steps, can it be filled in later? WCAG 2.2 even has a dedicated success criterion, 3.3.7 Redundant Entry: information the user has already entered within the same process should not be required again — it should be pre-filled or offered for selection.

  • A single “Name” field instead of separate first and last name fields, if you don’t need them split.
  • City and region derived from the postcode or location, with the option to correct them.
  • Shipping address defaulting to the billing address.
  • Optional fields either removed or clearly marked as optional.

Long forms are better split into logical stages with visible progress, but a simple action shouldn’t be broken into many screens. We wrote about reviewing the whole scenario, not just the form, in our piece on shortening the path to the first outcome.

Keyboard and autofill: field settings

The right keyboard type and autofill hints are the cheapest form improvement there is. The system can fill in email, phone, address, a password from the password manager and a one-time code from SMS — but only if the field is described correctly.

FieldiOSAndroidNote
EmailkeyboardType .emailAddress, textContentType .emailAddressKeyboardType.Email, autofill hint emailAddressTurn off auto-capitalisation and autocorrect
Phone.phonePad, textContentType .telephoneNumberKeyboardType.Phone, hint phoneNumberCountry code as a separate picker or prefix
One-time codetextContentType .oneTimeCodeKeyboardType.NumberPassword, SMS User Consent or Retriever APIOne field instead of six separate boxes
Password.password or .newPasswordKeyboardType.Password, hint passwordA “show password” toggle instead of a confirmation field
Amount, quantity.decimalPad or .numberPadKeyboardType.Decimal or NumberRespect the locale’s decimal separator
Address, postcode.fullStreetAddress, .postalCodehints postalAddress, postalCodeDon’t require a format that doesn’t exist in the user’s country

What else reduces errors

  • Formatting as people type without changing the stored value: card numbers in groups of four, phone numbers with spaces.
  • Lenient parsing: accept numbers with spaces, brackets and dashes instead of demanding “digits only”.
  • Choosing instead of typing where there are few options: dates via a picker, delivery type via toggles.
  • A “Next” key on the keyboard that moves to the next field, and “Done” or the form action on the last one.
  • One clear primary action and a proper loading state that prevents double submission.
  • Keeping entered text after a failed request, a lost connection and returning from the background.

Errors: when and how to show them

WCAG success criterion 3.3.1 Error Identification requires errors to be identified and described in text, not just with a red border. In practice this means:

  1. Show the error next to the field, not only at the top of the form.
  2. Explain how to fix it: “Enter 9 digits after +380”, not “Invalid format”.
  3. Validate a field when the user leaves it, not on every keystroke — otherwise people see an error before they have finished typing.
  4. Remove the message as soon as the value becomes valid.
  5. After a submission with errors, move focus to the first problem field and announce it to the screen reader.
  6. Phrase server errors as humanely as client-side ones, and don’t clear the form.

How to test a form

Test the form on a small screen, with a large system font and after returning from the background. On Android font scaling can reach 200%, and on iOS accessibility sizes go even larger — that is when labels overlap fields and the submit button disappears under the keyboard. Quality UX according to Android means not just a nice default state but predictable behaviour when something goes wrong.

  • Fill in the form one-handed on the smallest supported device.
  • Turn on the largest font size and check that every label is readable.
  • Go through the form with VoiceOver and TalkBack: every field has a clear name and errors are announced.
  • Cut the network before submitting and make sure no data is lost.
  • Check autofill from the password manager and one-time codes from SMS.

What to measure

Measure form completion, the number of resubmissions, errors per field and time to a successful result. It helps to log which field triggered a validation error (without the entered values, to respect privacy): this shows where a format is unclear. In our experience, one or two “problem” fields usually account for most of a form’s errors, so that is where fixes should start.

Common mistakes

  • A field to confirm the email or password instead of a way to view what was typed.
  • A placeholder instead of a label: after typing, people forget what the field was.
  • An input mask that blocks pasting a copied value.
  • Clearing the entire form after a server error.
  • A disabled submit button with no explanation of what is missing.

Mobile form checklist

  • Every field is needed right now; the rest has been postponed or removed.
  • Keyboard types and autofill hints are configured for all fields.
  • Errors appear next to the field as text and explain how to fix them.
  • Data survives errors, lost connectivity and backgrounding.
  • The form works with large fonts, a screen reader and one hand.
  • Analytics shows errors per field and resubmissions.

The best optimisation is often not a new design but removing an unnecessary question. And don’t forget to test forms on weaker devices: we described how in our piece on testing on affordable devices.

Sources: Android Developers: App quality and user experience; Android Developers: Autofill; Android Developers: Configure text fields in Compose; Apple Developer: UITextContentType; Apple Human Interface Guidelines: Entering data; WCAG 2.2: Error Identification; WCAG 2.2: Redundant Entry; web.dev: Payment and address form best practices.

Why Mobile Products Must Be Tested on Affordable Devices

Why Mobile Products Must Be Tested on Affordable Devices

An emulator on a powerful laptop and a flagship phone in a developer’s pocket create a false sense of quality. The app opens in a second, lists scroll smoothly, the camera focuses instantly. But a large share of the real audience uses phones with slower processors, less memory, cheaper storage and older OS versions — and that is exactly where problems the team never saw during development show up.

In our projects we keep seeing the same pattern: bug reports saying “it freezes”, “it crashes when I take a photo” or “it takes forever to load” almost always come from budget devices. That is why an affordable smartphone is not an optional extra for us but a mandatory part of the test fleet. Below is how we set up this kind of testing, which thresholds we use and which mistakes we recommend avoiding.

Why flagships and emulators are misleading

The difference between devices is not just CPU clock speed. Affordable phones have slower storage (often eMMC instead of UFS), so reading the database and unpacking resources at startup takes noticeably longer. Less RAM means the system kills background processes more aggressively: the user switches to a messenger, comes back, and the app starts from scratch, losing whatever they had typed. Under sustained load, cheaper chips overheat and throttle sooner, and some manufacturers add their own “battery optimisers” that stop background work.

Users do not perceive “low FPS” or “slow cold start” as separate technical events. They see a freeze, tap the button again, end up with a duplicate order or simply close the app. We covered why speed directly affects retention in our piece on Zomato’s experience.

What the Josh case study shows

A telling public example is Josh, an Indian short-video app whose story was published by the Android Developers team. The developers aimed for a consistent experience across high-end, mid-range and low-end devices and focused on cold start, because improving it automatically speeds up warm and hot starts as well.

  • The team profiled every block of code executed during startup and analysed system traces in Perfetto, Systrace and the Android Studio Profiler.
  • They disabled auto-initialisation of some third-party SDKs, removed legacy libraries and moved certain modules to the background.
  • They reduced the splash-screen drawables and optimised them for screen size.
  • Each change was validated in isolation by emulating cold starts and using Jetpack Macrobenchmark.

The result, according to the case study: startup became 30% faster for the average user and 3x faster for roughly 10% of users on older and low-end devices. Better bounce rates and retention helped Josh retain more than a million users compared with the baseline, and Play Store ratings trended upward. The key lesson: the biggest gains went to the people with the weakest phones.

Thresholds worth aiming for

To keep testing from becoming a subjective “feels slow”, you need numbers. Some of them are set by Google Play through Android vitals: exceeding the thresholds can reduce your app’s visibility in the store. Others are internal targets we use, and they should be read as studio experience.

MetricThresholdSource
Cold start (TTID)5 s or longer is considered excessiveAndroid vitals
Warm start2 s or longerAndroid vitals
Hot start1.5 s or longerAndroid vitals
User-perceived crash rate1.09% overall, 8% on a single phone modelAndroid vitals
User-perceived ANR rate0.47% overall, 8% on a single modelAndroid vitals
Frame budget≈16.7 ms at 60 Hz, ≈8.3 ms at 120 HzDisplay physics
Cold start on a budget devicetarget of 2–3 s to the first useful actionStudio target

Pay attention to the per-model thresholds. The average across all devices may look green while one popular budget model has crash rates of several percent — and that is a visibility and reputation problem in its own right.

Device matrix: the minimum to start with

The test fleet does not have to be large. Four or five devices are enough for us, provided they are chosen from data rather than from whatever happens to be lying around the office. Check the distribution of models, RAM and OS versions in Play Console, App Store Connect or your analytics.

  • One current flagship as the reference for design and animation.
  • One mid-range device running the Android version most common in your audience.
  • One affordable phone with 3–4 GB of RAM and slow storage.
  • The oldest iPhone still supported by your minimum iOS version.
  • If relevant, a device running Android Go edition, if you operate in markets where such phones are common.

A step-by-step testing process

  1. Define 5–7 key scenarios: first launch, sign-in, search, completing the core action, camera or file upload.
  2. Measure cold start on every device: on Android via the Displayed line in Logcat or Macrobenchmark, on iOS via Instruments. Repeat at least 10 times and take the median.
  3. Check scrolling of long lists, keyboard opening, image loading and screen rotation.
  4. Background the app, open a few heavy apps and return: form data and list position must survive.
  5. Throttle the network: speed profiles in the Android Emulator or Network Link Conditioner on iOS. Test switching between Wi‑Fi and mobile data.
  6. Repeat the key scenarios with battery saver on and a low battery level.
  7. Record not just the bug but the context: model, OS version, free memory, network state.

Common mistakes

  • Testing only debug builds. They are slower than release builds and distort measurements; measure performance on a release build with R8.
  • Initialising everything in Application.onCreate. Analytics, ads, support chat and an A/B platform at startup are a classic cause of slow launches, exactly as the Josh case shows.
  • Loading images at full resolution. On a weak device this is a direct route to an OutOfMemoryError.
  • Looking only at averages. Budget-device problems hide in the 90th and 95th percentiles.
  • Checking once before release. Performance regressions accumulate quietly, so measurements should be automated.

Pre-release checklist

  • Cold start on a budget device has been measured and is nowhere near the 5 s threshold.
  • Crash rate and ANR rate are below the Android vitals thresholds, including for your audience’s top models.
  • Form and navigation state is restored after process death.
  • Key scenarios have been run on a slow network and in battery saver mode.
  • Third-party SDKs not needed for the first screen are initialised lazily.
  • Startup metrics are tracked in production, not only in the test lab.

An affordable device is not a “lesser” user. It is a real environment in which the product has to keep its promise. Testing on it reduces abandonment and negative reviews, and with them the number of emergency fixes after release. After launch, look beyond downloads, at behaviour after install.

Sources: Android Developers: Josh app startup case study; Android vitals: core vitals and bad behavior thresholds; Android vitals: App startup time; Jetpack Macrobenchmark; Android: Build for Billions.

Journal

Ideas and products