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

Thomas Sinaguglia
Thomas Sinaguglia
402 Points

I don't see the design or text tabs, can someone help?

I looking under layout at my "activity_fun_facts.vml" and for some reason it doesn't give me the option to use a text or design tab.

1 Answer

Jaroslav Vankat
Jaroslav Vankat
12,054 Points

The problem might be that you have a *.vml file, try simply renaming it to *.xml or just create a new xml file (right click on layout folder and new -> layour resource file, don't forget to add ".xml" extension). Make sure that the Activity takes the right file for the layout (usually in the onCreate method - setContentView(R.layout.your_activity_layout file);).

Harry James
Harry James
14,780 Points

Marking this answer as the Best Answer since it has been resolved :)