AdMob的广告将不会显示在放置一个TabView的内 [英] Admob ads will not display when placed inside a tabview
问题描述
我一直在试图让我的广告在这种布局的显示。
选项卡 - >的LinearLayout - > ListView控件 - >头。头是通过 addHeaderView
设置并正常显示。如果我是移动广告在其他地方,他们正常显示(所以它不是一个设置问题)。在ListView的标头中使用的广告在我的其他项目正常工作。
I've been trying to get my ads to display in this type of layout.
Tabs -> LinearLayout -> ListView -> header. The header is set via addHeaderView
and is displaying normally. If I were to move the ads anywhere else they display normally (so its not a setup issue). Using ads in the header of a listview works fine in my other projects.
因此,这似乎是一个非常具体的问题,广告干脆拒绝显示时,放置在一个tabhost内ListView的头。
So this seems to be a very specific problem, the ads simply refuse to display when placed in the header of a listview inside a tabhost.
我的日志显示没有AdMob提供的活动的。可能出现了在这里的错误或SDK的限制。没有人有任何经验或深入了解这个问题?
My logs show no activity from admob at all. There is either a bug here or limitation of the sdk. Does anyone have any experience or insight into this issue?
修改
我找到了解决办法。它实际上是不得不做填充,这是在我的TabView的根。欲了解更多结账我的答案<一href="http://stackoverflow.com/questions/3576812/admob-ad-never-displays-in-view/3721410#3721410">here
I found the solution. It actually had to do with padding that was in the root of my Tabview. For more checkout my answer here
推荐答案
正如我在编辑提到的,这个问题已经做了填充的意见。我回答另一个问题<一href="http://stackoverflow.com/questions/3576812/admob-ad-never-displays-in-view/3721410#3721410">here
As I mentioned in the edit, the issue has to do with padding in the views. I answered another question here
这篇关于AdMob的广告将不会显示在放置一个TabView的内的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!