[android-developers] Re: Layout file not recognized as such in eclipse

2009-04-02 Thread dan raaka
posting xml file contents helps to see if there are any errors


On Thu, Apr 2, 2009 at 2:58 PM, Sheepz  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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Layout file not recognized as such in eclipse

2009-04-03 Thread TrojanSnake12

Yes, the extra info would help.

On Apr 2, 3:11 pm, dan raaka  wrote:
> posting xml file contents helps to see if there are any errors
>
> On Thu, Apr 2, 2009 at 2:58 PM, Sheepz  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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Layout file not recognized as such in eclipse

2009-04-03 Thread Sheepz

u r probably right, here it is:
"


http://schemas.android.com/apk/res/android";
android:id="@+id/dialogLayout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
>





"
it's pretty simple and straightforward...
On Apr 2, 6:25 pm, TrojanSnake12  wrote:
> Yes, the extra info would help.
>
> On Apr 2, 3:11 pm, dan raaka  wrote:
>
> > posting xml file contents helps to see if there are any errors
>
> > On Thu, Apr 2, 2009 at 2:58 PM,Sheepz 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Layout file not recognized as such in eclipse

2009-04-03 Thread droozen

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  wrote:
> u r probably right, here it is:
> "
>
> 
>  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"
>
>          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"
>     />
>                          android:id="@+id/dialogOkButton"
>                 android:layout_width="wrap_content"
>                 android:layout_height="wrap_content"
>                 android:text="@string/dialogOkMsg"
>         >
>         
> 
>
> "
> it's pretty simple and straightforward...
> On Apr 2, 6:25 pm, TrojanSnake12  wrote:
>
> > Yes, the extra info would help.
>
> > On Apr 2, 3:11 pm, dan raaka  wrote:
>
> > > posting xml file contents helps to see if there are any errors
>
> > > On Thu, Apr 2, 2009 at 2:58 PM,Sheepz 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Layout file not recognized as such in eclipse

2009-04-03 Thread Streets Of Boston

Being in danger of stating the obvious :-)

Did you try to look at Eclipse's 'Open With' menu-item.
Maybe you have it open as a regular XML file and this mode sticks.
Right click on your XML file and do 'Open With' and see if an Android
Plugin editor is offered as an alternative.


On Apr 2, 5:58 pm, Sheepz  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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Layout file not recognized as such in eclipse

2009-04-03 Thread Sheepz

Guess i'm gonna be wearing the stupid helmet for a while...
that fixed it!
thanks streets!

On Apr 3, 1:42 pm, Streets Of Boston  wrote:
> Being in danger of stating the obvious :-)
>
> Did you try to look at Eclipse's 'Open With' menu-item.
> Maybe you have it open as a regular XML file and this mode sticks.
> Right click on your XML file and do 'Open With' and see if an Android
> Plugin editor is offered as an alternative.
>
> On Apr 2, 5:58 pm,Sheepz 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---