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 243959
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T20:57:54+00:00 2026-05-11T20:57:54+00:00

From the O’Reilly book Android Application Development by Rick Rogers, John Lombardo, Zigurd Mednieks

  • 0

From the O’Reilly book “Android Application Development ” by Rick Rogers, John Lombardo, Zigurd Mednieks & Blake Meike, page 23:

 <TextView
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="@string/hello"
    />

From page 44:

 <application android:icon="@drawable/icon2">

What is the meaning of the @ in each of the above fragments?

  • 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-05-11T20:57:54+00:00Added an answer on May 11, 2026 at 8:57 pm

    In this case:

    android:layout_width="fill_parent"
    

    the value for the attribute, android:layout_width, is specified directly inside the quotes, fill_parent. In the other case:

    android:text="@string/hello"
    

    the value for the attribute, android:text="@string/hello", is specified elsewhere. This is indicated by the @ at the beginning of the string. In this example it is @string/hello. The value is in a resource.

    From the “Resource values” section in The AndroidManifest.xml File from the Android Developers site. Found from link in allclaws answer.

    Resource values are expressed in the
    following format,

    @[package:]type:name

    where the package name can be omitted
    if the resource is in the same package
    as the application, type is a type of
    resource — such as “string” or
    “drawable” — and name is the name that
    identifies the specific resource.

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

Sidebar

Related Questions

From a web developer point of view, what changes are expected in the development
From a desktop application developer point of view, is there any difference between developing
From this url: http://ws.geonames.org/findNearbyPostalCodes?lat=19.0176560&lng=72.8561780 I want is city name that is mumbai can somebody
from what i know there is only action helper & view helper available at
From what I've read, VS 2008 SP1 and Team Foundation Server SP1 packages are
From time to time I see an enum like the following: [Flags] public enum
From what information I could find, they both solve the same problems - more
From the Immediate Window in Visual Studio: > Path.Combine(@C:\x, y) C:\\x\\y > Path.Combine(@C:\x, @\y)
From time to time I get a System.Threading.ThreadStateException when attempting to restart a thread.
From my understanding the XMPP protocol is based on an always-on connection where you

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.