October 28th, 2012, 08:07 PM
|
#4 (permalink)
|
|
Senior Member
Join Date: Jul 2010
Gender: Male
Posts: 1,925
Device(s): Nexus 4, Samsung Galaxy S II, HTC Evo 4G, Amazon Kindle Fire
Carrier: ATT
Thanks: 235
Thanked 462 Times in 285 Posts
|
By default it should not be a blank file. It should be pre-populated with a Hello World TextView. Regardless, if the file is entirely blank, that is your problem. At the very least, you need to have the following:
Code:
<?xml version="1.0" encoding="utf-8"?>
You might also need to have a parent Layout. Any kind of Layout would work--LinearLayout, RelativeLayout, etc... Just make sure the parent layout has the attribute:
Code:
xmlns:android="http://schemas.android.com/apk/res/android"
__________________
My blog, Inverted Keystrokes, is looking for aspiring developers (not necessarily with Android) to post articles. If you have any development experience and are interested in participating, please PM me. =)
|
|
|