Android:滑入插页式广告后屏幕变黑
我在应用程序中显示插页式广告,并且定义了一个翻译动画,该动画设置为从右向左滑入广告。广告滑入效果很好,但当动画开始时,当广告滑入时,底层 Activity 会变成完全黑色。我希望能够看到底层 Activity 并将广告滑入其上方。如何防止底层 Activity 被黑色覆盖?
I show interstitial ads in my app, and I have defined a translation animation that is set to slide the ad in from right to left. The ad slides in just fine, but when the animation starts, the underlying Activity becomes completely black while the ad slides in. I would like to be able to see the underlying Activity and have the ad slide in over it. How do I keep the underlying Activity from being covered with black?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,我明白了。如果您也遇到这个问题,我在视图上设置了布局动画。我切换到使用 view.startAnimation 启动动画,黑色背景消失了。
Ok, I figured it out. In case you too run into this problem, I was setting a layoutanimation on the view. I switched to just starting the animation using view.startAnimation, and the black background went away.