如何确保admob广告始终只使用xml显示在屏幕底部?(How to make sure that the admob ads always appear on the bottom on the screen using xml only?)
你好 以下链接给出了我的android活动的xml(activity.xml)和admob(admob.xml)的xml。如何确保admob横幅始终位于显示屏的底部,而不管活动创建的显示如何xml喜欢这个链接: http : //i.imgur.com/J6glh.png ,有关如何执行此操作的任何建议吗?
activity.xml和admob.xml
Hifollowing link gives the xml of my android activity (activity.xml) and that of the admob (admob.xml).How to make sure that the admob banner is always on the bottom of the display screen irrespective of the display created by the activity xml like in this link : http://i.imgur.com/J6glh.png ,Any suggestions on how to do this?
activity.xml and admob.xml
最满意答案
这对我有用!!!
<RelativeLayout> <LinearLayout android:layout_alignParentTop="true"> ETC </LinearLayout> <com.google.ads.AdView android:layout_alignParentBottom="true"> </com.google.ads.AdView> </RelativeLayout>This worked for me!!!
<RelativeLayout> <LinearLayout android:layout_alignParentTop="true"> ETC </LinearLayout> <com.google.ads.AdView android:layout_alignParentBottom="true"> </com.google.ads.AdView> </RelativeLayout>更多推荐
发布评论