# Alex Zhuk

A blog about Android development & testing, Best Practices, Tips and Tricks

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Handling Asynchronous Images in Android Screenshot Tests

DevFeed: [Handling Asynchronous Images in Android Screenshot Tests](<https://devfeed.tech/articles/handling-asynchronous-images-in-android-screenshot-tests-24846.md>)

Original publisher: [Read original article](<https://alexzh.com/handling-asynchronous-images-in-android-screenshot-tests/>)

Author: Alex Zhukovich

Published: 2026-08-27T07:41:23Z

Content type: article

Language: en

Sources: [Alex Zhuk](<https://devfeed.tech/sources/alex-zhuk-android-development-and-testing.md>)

Topics: [screenshot-testing](<https://devfeed.tech/topics/screenshot-testing.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Android Testing](<https://devfeed.tech/topics/android-testing.md>), [screenshot](<https://devfeed.tech/topics/screenshot.md>), [Jetpack Compose](<https://devfeed.tech/topics/jetpack-compose.md>), [Image](<https://devfeed.tech/topics/image.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [asynchronous](<https://devfeed.tech/tags/asynchronous.md>), [coil](<https://devfeed.tech/tags/coil.md>), [images](<https://devfeed.tech/tags/images.md>), [screenshot](<https://devfeed.tech/tags/screenshot.md>), [screenshot-testing](<https://devfeed.tech/tags/screenshot-testing.md>), [tests](<https://devfeed.tech/tags/tests.md>)

### AI overview

Screenshot test frameworks wait for the UI to become idle but do not wait for asynchronous image requests, so captures may show blank images or vary between runs. For apps using Coil, the article recommends coil-test to provide predictable fake images for requests; a custom JUnit rule can set up and reset the image loader around each test, including after failures. As a fallback when that option is unavailable, Compose inspection mode is mentioned. In layoutlib-based Compose Preview Screenshot Testing and Paparazzi, network images cannot load, leaving empty space. The excerpt notes that placeholder images are often sufficient when tests verify layout across system configurations rather than image content; it does not include implementation details for the approaches.

### Source excerpt

This article is based on a chapter from my book, Mastering Android Screenshot Testing. Modern applications frequently load images asynchronously, which is a common cause of unstable screenshot tests or confusion when you review newly generated screenshots. A test can pass locally and fail on CI, produce a different image

## My laptop died last week, and here is what it took with it

DevFeed: [My laptop died last week, and here is what it took with it](<https://devfeed.tech/articles/my-laptop-died-last-week-and-here-is-what-it-took-with-it-24852.md>)

Original publisher: [Read original article](<https://alexzh.com/laptop-backup-system/>)

Author: Alex Zhukovich

Published: 2026-07-06T21:18:28Z

Content type: opinion

Language: en

Sources: [Alex Zhuk](<https://devfeed.tech/sources/alex-zhuk-android-development-and-testing.md>)

Topics: [bacula](<https://devfeed.tech/topics/bacula.md>), [Image](<https://devfeed.tech/topics/image.md>)

Tags: [backup](<https://devfeed.tech/tags/backup.md>), [data](<https://devfeed.tech/tags/data.md>), [laptop](<https://devfeed.tech/tags/laptop.md>), [personal](<https://devfeed.tech/tags/personal.md>), [system](<https://devfeed.tech/tags/system.md>), [water](<https://devfeed.tech/tags/water.md>)

### AI overview

After a water spill left the laptop unrecoverable, the author lost unbacked-up photos, book revisions and personal project code. They recommend identifying irreplaceable files, automating backups, and following the 3-2-1 rule: keep three copies including the original, across two storage types, with one copy remote. As an immediate step, copy one important folder to another location, then build a fuller backup setup later.

### Source excerpt

Last week I spilled water on my laptop. This is the story of what I lost, what I learned, and the 3-2-1 backup system I wish I'd had a week earlier.

## Why Visual Testing Is Critical for Mobile App Quality

DevFeed: [Why Visual Testing Is Critical for Mobile App Quality](<https://devfeed.tech/articles/why-visual-testing-is-critical-for-mobile-app-quality-24858.md>)

Original publisher: [Read original article](<https://alexzh.com/why-visual-testing-is-critical-for-mobile-app-quality/>)

Author: Alex Zhukovich

Published: 2025-03-13T20:59:10Z

Content type: tutorial

Language: en

Sources: [Alex Zhuk](<https://devfeed.tech/sources/alex-zhuk-android-development-and-testing.md>)

Topics: [screenshot-testing](<https://devfeed.tech/topics/screenshot-testing.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [visual-regression-testing](<https://devfeed.tech/topics/visual-regression-testing.md>)

Tags: [accessibility](<https://devfeed.tech/tags/accessibility.md>), [alignment](<https://devfeed.tech/tags/alignment.md>), [allows](<https://devfeed.tech/tags/allows.md>), [android](<https://devfeed.tech/tags/android.md>), [android-development](<https://devfeed.tech/tags/android-development.md>), [android-studio](<https://devfeed.tech/tags/android-studio.md>), [android-testing](<https://devfeed.tech/tags/android-testing.md>), [app](<https://devfeed.tech/tags/app.md>), [application](<https://devfeed.tech/tags/application.md>), [color](<https://devfeed.tech/tags/color.md>), [comparison](<https://devfeed.tech/tags/comparison.md>), [devices](<https://devfeed.tech/tags/devices.md>), [layout](<https://devfeed.tech/tags/layout.md>), [problems](<https://devfeed.tech/tags/problems.md>), [screenshot](<https://devfeed.tech/tags/screenshot.md>), [screenshot-testing](<https://devfeed.tech/tags/screenshot-testing.md>), [testing](<https://devfeed.tech/tags/testing.md>), [tests](<https://devfeed.tech/tags/tests.md>), [themes](<https://devfeed.tech/tags/themes.md>), [this](<https://devfeed.tech/tags/this.md>), [ui](<https://devfeed.tech/tags/ui.md>), [visual-testing](<https://devfeed.tech/tags/visual-testing.md>)

### AI overview

Visual testing catches pixel-level UI defects that behavioral UI and end-to-end tests may miss. In Android, screenshot tests compare the current UI with a baseline, or "golden screenshot"; a record command creates baselines and a verify command checks against them. The excerpt lists issues this can expose, including spacing and alignment errors, incorrect theme colors, device- or font-size-specific layout breaks, RTL/LTR rendering problems, localized text overflow, and color-contrast concerns. It notes that Android has multiple screenshot-testing frameworks, but the excerpt does not provide their comparison or further implementation details.

### Source excerpt

Visual tests catches UI imperfections that traditional UI tests miss. They detect misalignments, color issues, and layout problems across different devices and themes. This article introduces visual testing concepts, explains how screenshot comparison works, and demonstrates implementation.

## A Visual Guide to TopAppBar Variants in Jetpack Compose

DevFeed: [A Visual Guide to TopAppBar Variants in Jetpack Compose](<https://devfeed.tech/articles/a-visual-guide-to-topappbar-variants-in-jetpack-compose-24857.md>)

Original publisher: [Read original article](<https://alexzh.com/visual-guide-to-topappbar-variants-in-jetpack-compose/>)

Author: Alex Zhukovich

Published: 2025-02-14T01:16:00Z

Content type: article

Language: en

Sources: [Alex Zhuk](<https://devfeed.tech/sources/alex-zhuk-android-development-and-testing.md>)

Topics: [Jetpack Compose](<https://devfeed.tech/topics/jetpack-compose.md>), [material-components](<https://devfeed.tech/topics/material-components.md>), [Material Design](<https://devfeed.tech/topics/material-design.md>), [software-development](<https://devfeed.tech/topics/software-development.md>)

Tags: [article](<https://devfeed.tech/tags/article.md>), [components](<https://devfeed.tech/tags/components.md>), [compose](<https://devfeed.tech/tags/compose.md>), [design](<https://devfeed.tech/tags/design.md>), [jetpack-compose](<https://devfeed.tech/tags/jetpack-compose.md>), [material](<https://devfeed.tech/tags/material.md>)

### AI overview

Material 3 provides predefined Jetpack Compose TopAppBar variants with different title layouts and text support. CenterAlignedTopAppBar centers the title; MediumTopAppBar and LargeTopAppBar support expanding and collapsing; MediumFlexibleTopAppBar and LargeFlexibleTopAppBar add subtitles; TwoRowsTopAppBar supports subtitles and expanded/collapsed states, with separate text strings for each state. The article also says variants have default title and subtitle typography and heights, which can be customized, but the supplied excerpt gives no specific values.

### Source excerpt

Material 3 offers a variety of pre-built TopAppBar components to streamline your development and ensure consistency with Material Design guidelines. This article explores different TopAppBar variations, including those with centered titles, expandable layouts, and support for subtitles.

## How to add platform-specific icons to a Compose Multiplatform project

DevFeed: [How to add platform-specific icons to a Compose Multiplatform project](<https://devfeed.tech/articles/how-to-add-platform-specific-icons-to-a-compose-multiplatform-project-24847.md>)

Original publisher: [Read original article](<https://alexzh.com/how-to-add-platform-specific-icons-to-a-compose-multiplatform-project/>)

Author: Alex Zhukovich

Published: 2024-12-05T22:40:46Z

Content type: tutorial

Language: en

Sources: [Alex Zhuk](<https://devfeed.tech/sources/alex-zhuk-android-development-and-testing.md>)

Topics: [compose-multiplatform](<https://devfeed.tech/topics/compose-multiplatform.md>), [Icons](<https://devfeed.tech/topics/icons.md>), [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [multiplatform](<https://devfeed.tech/topics/multiplatform.md>), [Jetpack Compose](<https://devfeed.tech/topics/jetpack-compose.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [compose](<https://devfeed.tech/tags/compose.md>), [compose-multiplatform](<https://devfeed.tech/tags/compose-multiplatform.md>), [desktop](<https://devfeed.tech/tags/desktop.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [icons](<https://devfeed.tech/tags/icons.md>), [ios](<https://devfeed.tech/tags/ios.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [kotlin-multiplatform](<https://devfeed.tech/tags/kotlin-multiplatform.md>), [library](<https://devfeed.tech/tags/library.md>), [material](<https://devfeed.tech/tags/material.md>), [mechanism](<https://devfeed.tech/tags/mechanism.md>), [multiplatform](<https://devfeed.tech/tags/multiplatform.md>), [platform](<https://devfeed.tech/tags/platform.md>), [platforms](<https://devfeed.tech/tags/platforms.md>), [source-code](<https://devfeed.tech/tags/source-code.md>), [svg](<https://devfeed.tech/tags/svg.md>), [web](<https://devfeed.tech/tags/web.md>)

### AI overview

The article's example uses Kotlin Multiplatform's expect/actual mechanism to select platform-specific icons while keeping Compose UI code reusable. It uses SVG files placed in composeResources/drawable for iOS, and icons from material-icons-core for Android, Web, and Desktop. The example covers Back, Edit, and Delete icons; the supplied text does not include the platform declarations or icon object implementations.

### Source excerpt

Explore how to add a platform-specific icons to a Compose Multiplatform project. This article guides you through using different icons for Android, iOS, Desktop and Web platforms.

## How to create a scrollable chart in Compose Multiplatform

DevFeed: [How to create a scrollable chart in Compose Multiplatform](<https://devfeed.tech/articles/how-to-create-a-scrollable-chart-in-compose-multiplatform-24848.md>)

Original publisher: [Read original article](<https://alexzh.com/how-to-create-a-scrollable-chart-in-compose-multiplatform/>)

Author: Alex Zhukovich

Published: 2024-11-22T13:46:47Z

Content type: tutorial

Language: en

Sources: [Alex Zhuk](<https://devfeed.tech/sources/alex-zhuk-android-development-and-testing.md>)

Topics: [compose-multiplatform](<https://devfeed.tech/topics/compose-multiplatform.md>), [Kotlin](<https://devfeed.tech/topics/kotlin.md>)

Tags: [charts](<https://devfeed.tech/tags/charts.md>), [compose-multiplatform](<https://devfeed.tech/tags/compose-multiplatform.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [kotlin-multiplatform](<https://devfeed.tech/tags/kotlin-multiplatform.md>), [scrollable](<https://devfeed.tech/tags/scrollable.md>)

### AI overview

KoalaPlot 0.7.0 adds zoom and pan support across Android, iOS, Web, and Desktop, enabling a horizontally scrollable Compose Multiplatform bar chart. The excerpt's example uses 30 days of fake mood data; because plotting all points can be unreadable on mobile, it shows an initial range (days 1-15) and enables pan gestures for the chart components. The X-axis can be zoomed, and zoom can be enabled separately for either axis. The excerpt recommends passing chart data in as state rather than creating it inside the composable. It does not include the complete code or configuration details.

### Source excerpt

Explore how to create a scrollable chart with Compose Multiplatform using KoalaPlot library. This article guides you through creating dynamic, scrollable charts.

## Date and Time Formatting in Kotlin with the DateTime Library

DevFeed: [Date and Time Formatting in Kotlin with the DateTime Library](<https://devfeed.tech/articles/date-and-time-formatting-in-kotlin-with-the-datetime-library-24844.md>)

Original publisher: [Read original article](<https://alexzh.com/date-and-time-formatting-in-kotlin-with-the-datetime-library/>)

Author: Alex Zhukovich

Published: 2024-03-01T13:12:08Z

Content type: tutorial

Language: en

Sources: [Alex Zhuk](<https://devfeed.tech/sources/alex-zhuk-android-development-and-testing.md>)

Topics: [DateTime](<https://devfeed.tech/topics/datetime.md>), [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [Library](<https://devfeed.tech/topics/library.md>), [multiplatform](<https://devfeed.tech/topics/multiplatform.md>), [Parsing](<https://devfeed.tech/topics/parsing.md>)

Tags: [guide](<https://devfeed.tech/tags/guide.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [kotlin-multiplatform](<https://devfeed.tech/tags/kotlin-multiplatform.md>), [library](<https://devfeed.tech/tags/library.md>), [multiplatform](<https://devfeed.tech/tags/multiplatform.md>), [parsing](<https://devfeed.tech/tags/parsing.md>), [platform](<https://devfeed.tech/tags/platform.md>), [platforms](<https://devfeed.tech/tags/platforms.md>), [pre-release](<https://devfeed.tech/tags/pre-release.md>), [time](<https://devfeed.tech/tags/time.md>)

### AI overview

This tutorial explains how to parse and format dates and times in Kotlin using the kotlinx-datetime v0.6.0-RC library. It covers locale-invariant formatting with Unicode patterns and Kotlin DSL, along with parsing formatted values into date and time types.

### Source excerpt

Explore the art of formatting date and time in Kotlin with the Kotlinx-datetime library. This guide introduces you to the efficient use of Unicode patterns and Kotlin DSL for formatting date and time types. Ideal for Kotlin Multiplatform projects.

## Jetpack Compose: Divider

DevFeed: [Jetpack Compose: Divider](<https://devfeed.tech/articles/jetpack-compose-divider-24850.md>)

Original publisher: [Read original article](<https://alexzh.com/jetpack-compose-divider/>)

Author: Alex Zhukovich

Published: 2024-02-08T11:33:53Z

Content type: article

Language: en

Sources: [Alex Zhuk](<https://devfeed.tech/sources/alex-zhuk-android-development-and-testing.md>)

Topics: [Jetpack Compose](<https://devfeed.tech/topics/jetpack-compose.md>), [User Interfaces](<https://devfeed.tech/topics/user-interfaces.md>), [Material Design](<https://devfeed.tech/topics/material-design.md>)

Tags: [canvas](<https://devfeed.tech/tags/canvas.md>), [compose](<https://devfeed.tech/tags/compose.md>), [custom](<https://devfeed.tech/tags/custom.md>), [customization](<https://devfeed.tech/tags/customization.md>), [here](<https://devfeed.tech/tags/here.md>), [jetpack-compose](<https://devfeed.tech/tags/jetpack-compose.md>), [material](<https://devfeed.tech/tags/material.md>), [ui-components](<https://devfeed.tech/tags/ui-components.md>)

### AI overview

The excerpt distinguishes Material 2's divider, which uses a container, from Material 3's HorizontalDivider and VerticalDivider, which draw a line. Material 3 dividers take color, thickness and modifier parameters. HorizontalDivider uses available width by default; VerticalDivider uses available height, so its container needs a height constraint. The excerpt recommends a minimum-height arrangement for rendering children and notes that dividers add no surrounding space. Customization is limited: use the modifier for sizing or padding and the color and thickness parameters for appearance. For specialized layouts, the article describes drawing a custom divider on a canvas, including a diagonal path separator whose required width must be considered.

### Source excerpt

This article covers using and customizing the "Dividers" components from the "Material 2" and "Material 3" libraries in the Jetpack Compose. In addition to that, we will explore the difference between implementation of the Divider, HorizontalDivider and VerticalDivider.

## Review of 2023

DevFeed: [Review of 2023](<https://devfeed.tech/articles/review-of-2023-24856.md>)

Original publisher: [Read original article](<https://alexzh.com/review-of-2023/>)

Author: Alex Zhukovich

Published: 2024-01-04T19:36:53Z

Content type: article

Language: en

Sources: [Alex Zhuk](<https://devfeed.tech/sources/alex-zhuk-android-development-and-testing.md>)

Topics: [ui-testing](<https://devfeed.tech/topics/ui-testing.md>), [Android](<https://devfeed.tech/topics/android.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [User Interfaces](<https://devfeed.tech/topics/user-interfaces.md>)

Tags: [2023](<https://devfeed.tech/tags/2023.md>), [android-development](<https://devfeed.tech/tags/android-development.md>), [annual-review](<https://devfeed.tech/tags/annual-review.md>), [articles](<https://devfeed.tech/tags/articles.md>), [blog](<https://devfeed.tech/tags/blog.md>), [book](<https://devfeed.tech/tags/book.md>), [compose](<https://devfeed.tech/tags/compose.md>), [content](<https://devfeed.tech/tags/content.md>), [content-creation](<https://devfeed.tech/tags/content-creation.md>), [droidcon](<https://devfeed.tech/tags/droidcon.md>), [goals](<https://devfeed.tech/tags/goals.md>), [jetpack-compose](<https://devfeed.tech/tags/jetpack-compose.md>), [linkedin](<https://devfeed.tech/tags/linkedin.md>), [mastodon](<https://devfeed.tech/tags/mastodon.md>), [mobile-development](<https://devfeed.tech/tags/mobile-development.md>), [public-speaking](<https://devfeed.tech/tags/public-speaking.md>), [review](<https://devfeed.tech/tags/review.md>), [speaking](<https://devfeed.tech/tags/speaking.md>), [talks](<https://devfeed.tech/tags/talks.md>), [testing](<https://devfeed.tech/tags/testing.md>), [tips](<https://devfeed.tech/tags/tips.md>)

### AI overview

The author says 2023 was challenging, and credits morning reading, walks without music or podcasts, journalling, and avoiding the phone for the first two hours of the day with helping their mental state. They published eight articles, and alexzh.com received over 150,000 page views, up from around 112,000 the previous year. They also shared Android development and testing tips and gave workshops and talks on UI testing. For 2024, they aim to make their work more consistent, publish a book, release at least 15 articles, and publish 10 videos.

### Source excerpt

Review of 2023 The first week of 2024 is an excellent opportunity to reflect on the previous year and set goals for the upcoming one. The 2023 was pretty challenging for me in multiple areas of my life, like mental state and content creation. I'd like to share

## Not all UI tests are the same

DevFeed: [Not all UI tests are the same](<https://devfeed.tech/articles/not-all-ui-tests-are-the-same-24853.md>)

Original publisher: [Read original article](<https://alexzh.com/not-all-ui-tests-are-the-same/>)

Author: Alex Zhukovich

Published: 2023-11-17T00:11:25Z

Content type: article

Language: en

Sources: [Alex Zhuk](<https://devfeed.tech/sources/alex-zhuk-android-development-and-testing.md>)

Topics: [ui-testing](<https://devfeed.tech/topics/ui-testing.md>), [User Interfaces](<https://devfeed.tech/topics/user-interfaces.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Web Accessibility (a11y)](<https://devfeed.tech/topics/web-accessibility.md>), [software-development](<https://devfeed.tech/topics/software-development.md>)

Tags: [accessibility](<https://devfeed.tech/tags/accessibility.md>), [accessibility-testing](<https://devfeed.tech/tags/accessibility-testing.md>), [android-testing](<https://devfeed.tech/tags/android-testing.md>), [application](<https://devfeed.tech/tags/application.md>), [back-end](<https://devfeed.tech/tags/back-end.md>), [behavior](<https://devfeed.tech/tags/behavior.md>), [component](<https://devfeed.tech/tags/component.md>), [components](<https://devfeed.tech/tags/components.md>), [data](<https://devfeed.tech/tags/data.md>), [database](<https://devfeed.tech/tags/database.md>), [end-to-end-testing](<https://devfeed.tech/tags/end-to-end-testing.md>), [environment](<https://devfeed.tech/tags/environment.md>), [fake](<https://devfeed.tech/tags/fake.md>), [pixel](<https://devfeed.tech/tags/pixel.md>), [pixel-perfection](<https://devfeed.tech/tags/pixel-perfection.md>), [project](<https://devfeed.tech/tags/project.md>), [testing](<https://devfeed.tech/tags/testing.md>), [tests](<https://devfeed.tech/tags/tests.md>), [types](<https://devfeed.tech/tags/types.md>), [ui](<https://devfeed.tech/tags/ui.md>), [ui-testing](<https://devfeed.tech/tags/ui-testing.md>)

### AI overview

UI tests cover distinct checks: end-to-end tests exercise the UI and other application layers together, fake-data tests verify screen states, screenshot tests check appearance, and accessibility tests check whether people with disabilities can use the interface. End-to-end tests typically start at an app entry point, navigate across screens, and use production or staging data. The example flow adds a mood entry and verifies that its emotion, activity, and time appear on screen. The excerpt begins describing fake-data tests but ends before giving further details or getting-started steps.

### Source excerpt

The article explores different types of UI testing, such as end-to-end testing, UI testing with fake data, pixel perfection testing, and accessibility testing. The article also includes information on how to get started with UI testing in any project.

## Jetpack Compose: Pull to Refresh

DevFeed: [Jetpack Compose: Pull to Refresh](<https://devfeed.tech/articles/jetpack-compose-pull-to-refresh-24851.md>)

Original publisher: [Read original article](<https://alexzh.com/jetpack-compose-pull-to-refresh/>)

Author: Alex Zhukovich

Published: 2023-06-16T09:50:46Z

Content type: tutorial

Language: en

Sources: [Alex Zhuk](<https://devfeed.tech/sources/alex-zhuk-android-development-and-testing.md>)

Topics: [Jetpack Compose](<https://devfeed.tech/topics/jetpack-compose.md>), [Test automation](<https://devfeed.tech/topics/test-automation.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [User Interfaces](<https://devfeed.tech/topics/user-interfaces.md>), [User interface design](<https://devfeed.tech/topics/ui-design.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [background](<https://devfeed.tech/tags/background.md>), [colors](<https://devfeed.tech/tags/colors.md>), [compose](<https://devfeed.tech/tags/compose.md>), [customization](<https://devfeed.tech/tags/customization.md>), [experimental](<https://devfeed.tech/tags/experimental.md>), [jetpack](<https://devfeed.tech/tags/jetpack.md>), [jetpack-compose](<https://devfeed.tech/tags/jetpack-compose.md>), [material](<https://devfeed.tech/tags/material.md>), [refresh](<https://devfeed.tech/tags/refresh.md>), [scrollable](<https://devfeed.tech/tags/scrollable.md>), [semantic](<https://devfeed.tech/tags/semantic.md>), [state](<https://devfeed.tech/tags/state.md>), [testing](<https://devfeed.tech/tags/testing.md>), [tests](<https://devfeed.tech/tags/tests.md>), [ui](<https://devfeed.tech/tags/ui.md>), [ui-components](<https://devfeed.tech/tags/ui-components.md>), [user-interface](<https://devfeed.tech/tags/user-interface.md>)

### AI overview

Using the Material library from Compose BOM 2023.05.01, the excerpt describes adding pull-to-refresh with the `pullRefresh` modifier and `PullRefreshIndicator`, backed by a demo that adds list items after a delay. It covers configuring the refresh threshold and indicator offset, plus background and content colors, including different colors while refreshing. For UI tests, it recommends triggering the gesture with the scroll action on a scrollable semantics node; the excerpt begins a scenario where refreshing adds "Item 2" to a list initially showing "Item 1." The APIs are described as experimental.

### Source excerpt

This article covers adding and customizing the "Pull to Refresh" action in the Jetpack Compose. In addition to that, we will explore how to trigger pull to refresh action in UI tests.

## Regional Preferences in Android 14

DevFeed: [Regional Preferences in Android 14](<https://devfeed.tech/articles/regional-preferences-in-android-14-24855.md>)

Original publisher: [Read original article](<https://alexzh.com/regional-preferences-in-android-14/>)

Author: Alex Zhukovich

Published: 2023-05-26T17:32:20Z

Content type: tutorial

Language: en

Sources: [Alex Zhuk](<https://devfeed.tech/sources/alex-zhuk-android-development-and-testing.md>)

Topics: [Android](<https://devfeed.tech/topics/android.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [android-14](<https://devfeed.tech/tags/android-14.md>), [screen](<https://devfeed.tech/tags/screen.md>), [settings](<https://devfeed.tech/tags/settings.md>)

### AI overview

Android 14 adds Regional Preferences under Settings > System > Languages, where users can choose a first day of the week and temperature unit. The excerpt says an API can retrieve those preferences along with the hour cycle and calendar type, including values for locale-specific settings. It lists temperature units as Celsius or Fahrenheit; weekday codes from sun through sat; hour-cycle codes h11, h12, h23, and h24, with their corresponding ranges; and several calendar types, including Chinese, Dangi, Gregorian, Hebrew, and Indian. The excerpt does not preserve the API method or required dependency version, and its calendar-type list ends mid-entry.

### Source excerpt

This article explains how to get access to values from a "Regional Preferences" settings screen in Android 14.

## Get access to string resources in UiAutomator

DevFeed: [Get access to string resources in UiAutomator](<https://devfeed.tech/articles/get-access-to-string-resources-in-uiautomator-24845.md>)

Original publisher: [Read original article](<https://alexzh.com/get-access-to-string-resources-in-uiautomator/>)

Author: Alex Zhukovich

Published: 2023-03-24T17:21:14Z

Content type: tutorial

Language: en

Sources: [Alex Zhuk](<https://devfeed.tech/sources/alex-zhuk-android-development-and-testing.md>)

Topics: [UiAutomator](<https://devfeed.tech/topics/uiautomator.md>), [Web Accessibility (a11y)](<https://devfeed.tech/topics/web-accessibility.md>)

Tags: [accessibility](<https://devfeed.tech/tags/accessibility.md>), [application](<https://devfeed.tech/tags/application.md>), [compilation](<https://devfeed.tech/tags/compilation.md>), [compilation-error](<https://devfeed.tech/tags/compilation-error.md>), [context](<https://devfeed.tech/tags/context.md>), [device](<https://devfeed.tech/tags/device.md>), [dialog](<https://devfeed.tech/tags/dialog.md>), [espresso](<https://devfeed.tech/tags/espresso.md>), [example](<https://devfeed.tech/tags/example.md>), [failure](<https://devfeed.tech/tags/failure.md>), [formatting](<https://devfeed.tech/tags/formatting.md>), [framework](<https://devfeed.tech/tags/framework.md>), [function](<https://devfeed.tech/tags/function.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [id](<https://devfeed.tech/tags/id.md>), [language](<https://devfeed.tech/tags/language.md>), [resources](<https://devfeed.tech/tags/resources.md>), [string](<https://devfeed.tech/tags/string.md>), [test](<https://devfeed.tech/tags/test.md>), [ui-testing](<https://devfeed.tech/tags/ui-testing.md>), [uiautomator](<https://devfeed.tech/tags/uiautomator.md>)

### AI overview

The excerpt recommends replacing hard-coded notification text in UiAutomator tests with values loaded from the app's string resources, helping tests tolerate locale changes and resource text updates. It describes two approaches: look up a resource by passing the package name and resource ID as strings, which is typo-prone, or use the generated resource class. The latter requires application context, obtained from the test context, and a helper that returns the string for a resource ID. Reusing resources provides a single source of truth and lets compilation catch renamed resource identifiers. The excerpt omits the actual API and class names and code, so it does not provide implementation details.

### Source excerpt

This article explains how to access string resources in UiAutomator test cases.