December 9th, 2011, 08:19 AM
|
#1 (permalink)
|
|
Junior Member
Join Date: May 2011
Posts: 43
Device(s):
Thanks: 3
Thanked 4 Times in 1 Post
|
Tutorial HelloRelativeLayout
Hi
I'm following the android tutorials and am having problems with the [ HelloRelativeTutorial], it keeps throwing up a [Couldn't resolve resource @id/entry] error in the MotoDev Studio.
Any ideas why???
/res/layout/main.xml is
Code:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TextView
android:id="@+id/label"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Type here:"/>
<EditText
android:id="@+id/entry"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@android:drawable/editbox_background"
android:layout_below="@id/label"/>
<Button
android:id="@+id/ok"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/entry"
android:layout_alignParentRight="true"
android:layout_marginLeft="10dip"
android:text="OK" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toLeftOf="@id/ok"
android:layout_alignTop="@id/ok"
android:text="Cancel" />
</RelativeLayout>
|
|
|