I had 2 errors but i got one fixed. I still have the Error parsing XML unbound prefix error thou at the com.admob.android.ads wats wrong?
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout>
<WebView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/webview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>
<com.admob.android.ads.AdView
android:id="@+id/ad"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
xmlns:backgroundColor="#000000"
xmlns:primaryTextColor="FFFFFF"
xmlns:secondaryTextColor="#CCCCCC"
android:layout_alignParentTop="true"
ads:adUnitId="xxxxxxxxxxxx"
ads:adSize="BANNER"
ads:loadAdOnCreate="true"
/>
</RelativeLayout>
You need to set layout configuration on the main tag (RelativeLayout) and to set the namespace of ads:
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With