Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
无论如何,只有在用户将 web 视图一直滚动到底部之后才能显示 admob 广告?我不希望它显示在 webview 的顶部,因为它会阻止内容或减少可见区域。我应该如何修改我的 XML?
使用以下方法获取 webView 内容高度:
int height = (int) Math.floor(webView.getContentHeight() * webView.getScale());
loadAd()