AdWhirl 耗尽了列表视图的所有空间
我有一个具有垂直线性布局的活动,其中包含图像、按钮、列表视图和广告布局。所有的高度都有wrapp_content,列表视图的weight =“1”以强制它使用所有剩余空间。只要 adwhirl 不显示广告,此功能就可以正常工作。一旦完成,线性布局将重新绘制,列表视图的高度将变为 0!当列表视图显示项目时也是如此。这些消失了。广告旋转与剩余的一样大有人知道出了什么问题吗?
I've an Activity with a vertical linearlayout containing images, buttons, listview and adwhirllayout. All have for their height wrap_content and the listview has weight="1" to force it to use all remaining space. This works fine as long as the adwhirl doesn't show an ad. Once it does, the linearlayout redraws and the listview's height becomes 0! Also when the listview is showing items. These disappear. The adwhirl is as big as the remainingSomeone an idea what's wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是我的应用程序中的列表视图之一。屏幕底部还有 admob。试一试吧。
This is one of the listviews from my app. It also has admob at the bottom of the screen. Give this a go.