android - Layout Adview - Error Parsing XML Unbound Prefix -


my code is:

//error parsing xml: unbound prefix error <com.google.ads.adview    android:id="@+id/adview"    android:layout_width="wrap_content"    andorid:layout_height="wrap_content"    ads:adsize="banner"     ads:adunitid=""     ads:loadadoncreate="true"    ads:testdevices="test_emulator, test_device_id" />  <webview      android:id="@+id/webkit"     android:layout_width="fill_parent"      android:layout_height="fill_parent"  />    </linearlayout> 

what wrong? don't know.

i try change "xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads" "android:ads="http://schemas.android.com/apk/lib/com.google.ads", can't solve

change andorid:layout_height android:layout_height="wrap_content" take reference below layout example:

<?xml version="1.0" encoding="utf-8"?> <linearlayout 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"     android:background="#000000"     android:orientation="vertical" >      <com.google.ads.adview             android:id="@+id/adview"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             ads:adsize="banner"             ads:adunitid="ad_unit_id"             ads:loadadoncreate="true"             ads:testdevices="test_emulator"             />       <framelayout         android:id="@+id/rootframelayout"         android:layout_width="fill_parent"         android:layout_height="fill_parent"         />   </linearlayout> 

Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -