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

  • SEARCH
  • Home
  • 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 8464079
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T14:37:59+00:00 2026-06-10T14:37:59+00:00

android:text=Button doesn’t work. I should make a special string for it in the values/strings.xml

  • 0

@string/ reference error

android:text="Button" doesn’t work.
I should make a special string for it in the values/strings.xml and change the android:text="Button" to android:text="@string/button" for button having the value "Button".

What’s the problem it used to work before?

  • 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-10T14:38:01+00:00Added an answer on June 10, 2026 at 2:38 pm

    Those are not error only warning, there is tool in every ide called lint which helps programmer to write code in standard format of that language. In android standard practice is to use string.xml for storing all of your string value that is used in xml, so lint shows a warning that you should not directly set label hard-coded rather add them in string resource then set the resource id.

    And there is some advantage of using string values like

    • If you want to give multi language support of your app then can use multiple string resources for this.
    • Can be changed any time without changing source code.
    • All resource are added in R.java automatically so you can use them in class also.

    etc

    You can find more information here —

    String Resources

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

Sidebar

Related Questions

I want to change my radio button text in android app with a value
How can I define underlined text in an Android layout xml file?
I want to change the text inside a button to be bold when the
I'm trying to change the drop shadow of the text in a button and
hi i have the following xml layout <Button android:id=@+id/signupButton android:layout_gravity=left android:layout_width=100sp android:layout_height=wrap_content android:layout_marginLeft =
Eclipse doesn't accept the less than symbol for the button text, is there a
I'm trying to create standard button in android with a background and some text
I have several Views, text views, and a button that have the android:visibility=invisible attribute.
Here's my button style: <style name=StandardButton parent=@android:style/Widget.Button> <item name=android:background>@drawable/button_mib_standard</item> <item name=android:textColor>@drawable/button_text</item> <item name=android:padding>16dip</item> <item
i want to set some content on android text view. Like... What is a

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.