Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8967447
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:14:43+00:00 2026-06-15T17:14:43+00:00

You can use strings in this way: R.string.* or in xml: android:text=@strings/* – right?

  • 0

You can use strings in this way: " R.string.*" or in xml: "android:text=@strings/*" – right?

They all take their values out of a fixed file named strings where you put them all in right?

Let’s say I have an app where there is the possibility to change language. Is there a way in which I can change that string file? Let’s say have a strings file for English and strings for French or anything.. so i can still use the R.string.* and @string/* but I will get different values depends on the user choice?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T17:14:44+00:00Added an answer on June 15, 2026 at 5:14 pm

    The Developer’s Guide on Localization covers this.

    In short use the same string names, but have different locale folders, like:

    • res/values/strings.xml for the default language
    • res/values-fr/strings.xml for French
    • res/values-ja/strings.xml for Japanese

    The OS will load the appropriate language for R.string.hello for you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The documentation ( http://developer.android.com/guide/topics/manifest/manifest-element.html#uid ) only states I can't use raw strings and the
How can I use regex in python to capture something between two strings or
I'm trying to avoid the use of magic strings as much as I can,
If I use String.intern() to improve performance as I can use == to compare
The max number of characters you can use in string in a vba function
I am getting the below perl error. Can't use string () as a symbol
How can I use emacs string-insert-rectangle operation to add a vector of numbers to
Possible Duplicate: How can I use a string with the same name of an
I can use the following codes to trim a string: -(void) aMethod { //
This is my layout: <?xml version=1.0 encoding=utf-8?> <LinearLayout xmlns:android=http://schemas.android.com/apk/res/android android:layout_width=match_parent android:layout_height=wrap_content android:orientation=vertical> <TextView android:layout_width=wrap_content

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.