Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Build a Simple Android App (2014) Creating the Screen Layout Editing a Layout File

Any websites/documents that can aid me with the use of Android 1.4, @string text doesn't appear

I wanted to know if there was any additional material, in the form of website/documents/video channel;YouTube, that can aid me in understanding the new updates available for this version of Android Studios

Ben Deitch
Ben Deitch
Treehouse Teacher

Could you elaborate you mean by "@string text doesn't appear"?

1 Answer

I believe Anthony may be referring to the fact that Android Studio 1.4+ now defaults (on mine at least) the "Hello World" text to be hard coded to "Hello World!" instead of using a reference pointer to strings.xml values.

This is the default content of my strings.xml for the new project.

<resources>
    <string name="app_name">Fun Facts</string>
    <string name="action_settings">Settings</string>
</resources>

while the text box content is simply "Hello World!" in my res/layout/content_fun_facts.xml file.

For this video, it's simply removed and hard coded to the way Android Studio 1.4 defaults to anyway so it shouldn't matter too much at this point.

But it can be confusing now that there are 2 xml files instead of 1 (activity.xml/content.xml), and it defaults to hard coding the text value.