Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error parsing XML with facebook button

Tags:

android

xml

I'm getting error parsing xml on line (error). I have my namespace for android and facebook declared so I don't know why...

 <?xml version="1.0" encoding="utf-8"?>
    <RelativeLayout 
        xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:facebook="http://schemas.android.com/apk/res-auto"
        android:layout_width="fill_parent"
        android:layout_height="match_parent"
        android:orientation="vertical"
        >  

(error) <com.facebook.widget.LoginButton 
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="500dp"
        facebook:confirm_logout="false"
        android:id="@+id/login_button"
        facebook:fetch_user_info="true"
        android:layout_centerHorizontal="true"
                    />
    </RelativeLayout> 
like image 347
Jake Avatar asked Feb 17 '23 08:02

Jake


1 Answers

You can add this prefix tag: xmlns:facebook="http://schemas.android.com/apk/res-auto"

like image 194
Sea turtle Avatar answered Feb 20 '23 00:02

Sea turtle