wrpa it with any layout tags...............
<?xml version=*"1.0"* encoding=*"utf-8"*?> <LinearLayout xmlns:android=*"http://schemas.android.com/apk/res/android" * android:orientation=*"vertical" * android:layout_width=*"fill_parent" * android:layout_height=*"fill_parent" * > <TextView android:id="@+id/text1" xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content"/> </LinearLayout> On 1/10/09, [email protected] <[email protected]> wrote: > > > I'm having the same error as Teena. I created the file res> layout> > notes_row.xml and this information in it > > <?xml version="1.0" encoding="utf-8"?> > <TextView android:id="@+id/text1" > xmlns:android="http://schemas.android.com/apk/res/android" > android:layout_width="wrap_content" > android:layout_height="wrap_content"/> > > But the R.java file has not changed > > Alex > > On Jan 9, 4:59 am, "PRATAP SOLAPUR" <[email protected]> wrote: > > Are you getting any errors............... > > > > On 1/9/09, Teena <[email protected]> wrote: > > > > > Thanks for the reply Pratap. :) Yes, my notes_row.xml is in the res > > > > layout folder. Is there anything else I could have misplaced? > > > > > _____ > > > > > From: [email protected] > > > [mailto:[email protected]] On Behalf Of PRATAP > SOLAPUR > > > Sent: Wednesday, January 07, 2009 11:02 PM > > > To: [email protected] > > > Subject: [android-beginners] Re: Notepad tutorial > > > > > have you placed the files in proper > directories............notes_row.xml > > > must be in under res>layout folder................ > > > > > On 1/8/09, Teena <[email protected]> wrote: > > > > > Hi all. > > > > > I'm following through the notepad tutorial. I'm in Exercise 1 and in > step 5 > > > it says at the end of step 5: > > >http://code.google.com/android/intro/tutorial-ex1.html > > > > > "Open the R.java class in the project and look at it, you should see > new > > > definitions for notes_row and text1 (our new definitions) meaning we > can now > > > gain access to these from the our code." > > > > > I don't have these new definitions as far as I can tell. I'm learning > the > > > interface of eclipse at the same time, so I might not be looking in the > > > right place. Here is the contents of my R.java: > > > > > /* AUTO-GENERATED FILE. DO NOT MODIFY. > > > * > > > * This class was automatically generated by the > > > * aapt tool from the resource data it found. It > > > * should not be modified by hand. > > > */ > > > > > package com.android.demo.notepad1; > > > > > public final class R { > > > public static final class attr { > > > } > > > public static final class drawable { > > > public static final int icon=0x7f020000; > > > } > > > public static final class layout { > > > public static final int notepad_list=0x7f030000; > > > } > > > public static final class string { > > > public static final int app_name=0x7f040000; > > > public static final int no_notes=0x7f040001; > > > } > > > } > > > > > I'm looking under Notepadv1 > src > com.android.demo.notepad1 > R.java > in > > > the Package Explorer. Can anyone suggest why my new definitions are > not > > > there? > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

