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 (retired 2014) Pretty Little Things Positioning Text Using a Linear Layout

Adil Patel
Adil Patel
316 Points

Cant find the "view" from the design tab in Android studio. Only thing I can see is "custom view".

In the crystal ball app, im trying to center the text and in the video the "view" was dragged into the app. I cant find that in android studio.

http://imgur.com/fpr3myT

2 Answers

Samuel Canerday
Samuel Canerday
12,610 Points

The view that you are looking for is called the "preview" window in android studio.

You have to open a layout view in your project. Navigate to src/main/res/layout/ in your project and select the xml layout file you want to work with.

If the preview window doesn't automatically open up, you can open the view by selecting from the tool bar View>Tool Windows>Preview

There will be a "Design" and "Text" tab at the bottom of the xml layout.

Evelina Yankova
Evelina Yankova
5,869 Points

Did you find it? Look in the Graphical Layout of activity_main.xml under the Advanced Category of the Palette.

Adil Patel
Adil Patel
316 Points

I dont have an advanced category. Im using android studio not eclipse.