You're missing a > at the end of the LinearLayout declaration.

However, I've noticed the same error, where eclipse wouldn't recognize
a layout file as such (so that I could get a preview of it), but when
I ran it in the emulator, it ran fine and the layout displayed fine
(so I assume no error in the layout file). I believe this may have
happened when I copied a layout file from another project into the
folder directly.

On Apr 3, 12:33 pm, Sheepz <[email protected]> wrote:
> u r probably right, here it is:
> "
>
> <?xml version="1.0" encoding="utf-8"?>
> <LinearLayout
> xmlns:android="http://schemas.android.com/apk/res/android";
> android:id="@+id/dialogLayout"
> android:layout_width="wrap_content"
> android:layout_height="wrap_content"
> android:orientation="vertical"
>
> <TextView
>         android:id="@+id/textPuki"
>         android:layout_gravity="center_horizontal"
>     android:layout_width="wrap_content"
> android:layout_height="wrap_content"
>     android:gravity="center_vertical|center_horizontal"
>     android:text="@string/msg1"
>     />
>         <Button
>                 android:id="@+id/dialogOkButton"
>                 android:layout_width="wrap_content"
>                 android:layout_height="wrap_content"
>                 android:text="@string/dialogOkMsg"
>         >
>         </Button>
> </LinearLayout>
>
> "
> it's pretty simple and straightforward...
> On Apr 2, 6:25 pm, TrojanSnake12 <[email protected]> wrote:
>
> > Yes, the extra info would help.
>
> > On Apr 2, 3:11 pm, dan raaka <[email protected]> wrote:
>
> > > posting xml file contents helps to see if there are any errors
>
> > > On Thu, Apr 2, 2009 at 2:58 PM,Sheepz<[email protected]> wrote:
>
> > > > Hi all, pretty simple question:
> > > > I've created a new xml file in my layouts directory using eclipse's
> > > > "new->xml file" wizard and i want to be able to use the built in
> > > > layout editor, however, this file is not recognized as an android
> > > > layout file by the editor, but rather as an ordinary file.
> > > > everything compiles and runs okay, but i wanted to know how to do it
> > > > better next time...
> > > > Thanks
> > > > Sh...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to