# Android Native Text

DevFeed: [Android Native Text](<https://devfeed.tech/articles/android-native-text-26137.md>)

Original publisher: [Read original article](<https://vadzimv.dev/2021/10/01/android-native-text.html>)

Author: Vadzimv Dev Blog

Published: 2021-10-01T09:00:00Z

Content type: tutorial

Language: en

Sources: [vadzimv Dev Blog](<https://devfeed.tech/sources/vadzimv-dev-blog.md>)

Topics: [Android](<https://devfeed.tech/topics/android.md>), [unit test](<https://devfeed.tech/topics/unit-test.md>), [Localization (l10n)](<https://devfeed.tech/topics/localization.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [locale](<https://devfeed.tech/tags/locale.md>), [testing](<https://devfeed.tech/tags/testing.md>), [unit-testing](<https://devfeed.tech/tags/unit-testing.md>)

## AI overview

This tutorial explains how to handle Android string and plural resources in view models while avoiding stale text after configuration or language changes. It recommends storing resource IDs and arguments in view models, resolving localized text in the UI, and unit-testing the resulting parameters without directly interacting with the Android framework.

## Source excerpt

How to use Android String and Plurals resources in a View Model + Unit testing them.