Hi all,

Following is my new layout Admob XML file. And I use setContentView to
call this layout in PreferenceActivity. But I don't know why the Admob
can't show out.
Who can teach me what's my wrong?
It make me crazy because I wasted 2 days in this problem.




<LinearLayout
                android:layout_height="fill_parent"
                android:layout_width="fill_parent"
                xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads";
                xmlns:android="http://schemas.android.com/apk/res/android";>

<ListView android:id="@android:id/list"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent" />

<com.google.ads.AdView android:id="@+id/ad"
                android:layout_width="wrap_content"
                android:layout_height="70.0dip"
                ads:adSize="BANNER"
                ads:adUnitId="<my Admob ID"
                ads:loadAdOnCreate="true" />

</LinearLayout>

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