I am very upset. The Admob haven't come out too. On 10月17日, 上午12時35分, Kostya Vasilyev <kmans...@gmail.com> wrote: > The listview is taking the entire activity width and height (because of > "fill_parent"), so the AdMob view is there, but is pushed beyond the > edge of the screen. > > Try this on the listview: > > android:layout_height="fill_parent" > android:layout_height="0px" > android:layout_weight="1" > > And specify orientation=vertical on the LinearLayout: the default is > horizontal, meaning the AdMob view is pushed to the right. > > And probably change the width to fill_parent on the AdMob view as well. > > -- Kostya > > 16.10.2011 20:19, Perry168 пишет: > > > > > > > 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> > > -- > Kostya Vasilyev- 隱藏被引用文字 - > > - 顯示被引用文字 -
-- 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