Yeah that was it. COpied it into notepad and it showed some garbled up  
things. Thanks.




On 06-Mar-09, at 4:10 AM, Marco Nelissen wrote:

>
> That layout compiles fine for me. Are you sure you don't have some
> non-printable character in your xml file that is messing things up?
>
>
> On Tue, Mar 3, 2009 at 10:27 PM, idev <ideveloper...@gmail.com> wrote:
>>
>> <?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"
>>    android:background="@drawable/bkg"
>>    >
>>    <TextView
>>    android:layout_width="fill_parent"
>>    android:layout_height="200px"
>>    android:text="@string/hello" >
>>    </TextView>
>>    <LinearLayout
>>    android:orientation="horizontal"
>>    android:layout_width="fill_parent"
>>    android:layout_height="55px"
>>    android:gravity="center">
>>    <Button android:id="@+id/installRing"
>>         android:layout_width="wrap_content"
>>         android:layout_height="52px"
>>         android:background="@drawable/installBtn">
>>        </Button>
>>    </LinearLayout>
>>
>> </LinearLayout>
>>
>> I cannot understand what is wrong with this layout. I keep getting
>> this error in the xml saying Element type "Button" must be either
>> followed by attributes or > or />
>> I don't understand why the editor can't recognize android:id as an
>> attribute! I tried writing the whole XML again but keep getting this
>> error!
>>
>> Thanks for any help.
>>
>>>
>>
>
> >


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to