Probably because you have android:id="surface" whereas maybe you mean android:id="@+id/surface"?
On Apr 16, 5:41 am, "Analdin Judy" <[EMAIL PROTECTED]> wrote: > Hi > > Can anybody please tell me what is the reason for the following error > > "No resource identifier found for attribute 'id' in package 'android' " > > I got the error in the following code > > <?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"> > > <SurfaceView android:id="surface" //I got error here > > android:layout_width="176px" > > android:layout_height="144px" > > android:layout_gravity="center"> > > </SurfaceView> > > <Button android:id="@+id/play" > > android:layout_height="wrap_content" > > android:layout_width="fill_parent" > > android:text="Play" > > /> > > </LinearLayout> > > Thanks > > judy --~--~---------~--~----~------------~-------~--~----~ 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] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

