-
Notifications
You must be signed in to change notification settings - Fork 2k
Google 开屏广告不全屏的问题 #334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
遇到这个问题+1,用了这个库基本上很难兼容到谷歌的AdActivity,因为调用加载广告的方法的时候,admob就会拿当前application的DisplayMetrics去上报平台获取对应尺寸的广告。然后展示广告的时候又会基于当前activity的dpi展示广告View。所以其实加载和填充都会影响到admob的广告展示大小。 实在需要兼容就只能是load广告前调用下cancelAdapt,然后在恢复adapt,但有坑 |
大牛,我也遇到了这个问题,用里面的方式制定尺寸config.getExternalAdaptManager().addExternalAdaptInfoOfActivity(com.google.android.gms.ads.AdActivity.class, new ExternalAdaptInfo(true, 540)); 都还是不行,不知道怎么解决,请帮忙。 |
|
是 welcome 页面能适配,只是后面的页面不能适配;还是 welcome 页面以及后面的页面都不能适配。 断点看看,是不是框架的启动慢于 super.onCreate(savedInstanceState); 了 如果是框架的启动慢于 super.onCreate(savedInstanceState); ,看能不能提早调用 AutoSize.checkAndInit(getApplication()); 提前初始化框架,或者延后第一个页面的启动,或者框架设置 density 后,手动重绘当前页面的所有view |
对 我就是延迟搞的 |
这个问题我差不多解决了
adjustAutoSize是下面CancelAdapterContextWrapper类的一个静态方法,注意除了这些代码还要配合
|
请问一下这个方案可以解决吗?能发个完整的解决方案吗?比如 TempoCrashFixer.fixCustomApplication(mApplication, this); 这个有什么处理吗? |
没有完全解决,有时候还是有问题, |
Google 开屏广告类为 com.google.android.gms.ads.AdActivity,使用屏幕适配方案后,全屏广告不全屏了,如下图所示:

请问有什么方法能去掉第三方的 AdActivity 使用屏幕适配方案吗?
The text was updated successfully, but these errors were encountered: