Admob的广告扭曲UI的onReceive [英] Distorted UI onReceive of Admob Ads

查看:141
本文介绍了Admob的广告扭曲UI的onReceive的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Android的UI被扭曲每当AdMob的广告出现。而这种情况在屏幕上,它有一定的动画播放。在此屏幕上我有一个按钮动画与Android:的repeatCount =无限

The android UI gets distorted whenever the admob ads show up. And this happens on screens, which have some animations playing. On this screen I have a button animating with android:repeatCount="infinite".

我观察到这种行为(迁移到新的Admob的后),因为我已经改变了AdMob的广告ID为新的Admob的ID。请帮助!

I have observed this behavior since I have changed the admob Ad Id to the new Admob ID (after migrating to new Admob). Please help!!

推荐答案

这是一个开放的问题到Android的问题跟踪检查报告

This is an open issue reported to android issue tracker check

渲染毛刺上查看由于Android 4.4.3。的https://$c$c.google.com/p /安卓/问题/详细信息?ID = 70914

作为一种解决办法,我也有我的应用程序中设置layertype

As a workaround which I also have in my apps is setting a layertype

yourView.setLayerType(View.LAYER_TYPE_SOFTWARE, null);

 yourView.setLayerType(View.LAYER_TYPE_HARDWARE, null);

在我的测试中既解决了这个问题。您可能需要为Android版本添加支票作为<一个href="http://developer.android.com/reference/android/view/View.html#setLayerType(int,%20android.graphics.Paint)"相对=nofollow> setLayerType 中添加了API 11,如果您支持的应用程序一路姜饼

In my testing both solved the issue. You may need to add checks for android version as setLayerType was added in API 11 if you are supporting apps all the way to GingerBread

这篇关于Admob的广告扭曲UI的onReceive的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆