简体   繁体   English

Android底部导航栏隐藏AdMob广告

[英]Android bottom navigation bar hiding AdMob adverts

I've got an odd bug here with Xamarin Forms on my droid project. 我的droid项目中的Xamarin Forms出现了一个奇怪的错误。 The bottom navigation bar (ie the one with the home, back etc buttons) is hiding the AdMob adverts. 底部的导航栏(即带有主页,后退等按钮的导航栏)正在隐藏AdMob广告。 If I choose to hide it by double tapping the circle (on the navigation bar), the advert appears, and when I double tap the circle again to make the navigation bar re-appear the ads display. 如果我选择通过双击圆圈(在导航栏上)将其隐藏,则会显示广告,并且当我再次双击圆圈以使导航栏重新显示广告时,会显示广告。 But unless I hide the navigation bar, you would never know the advert is there! 但是,除非我隐藏导航栏,否则您永远不会知道广告在那儿!

I've tried setting various options under the SystemUIVisility and nothing is working. 我尝试在SystemUIVisility下设置各种选项,但没有任何效果。 I even got the app into full screen mode and set the navigation bar to hidden but the adverts still did not appear. 我什至使应用程序进入全屏模式,并将导航栏设置为隐藏,但广告仍然没有出现。

Has anyone else had this issue and found a fix? 还有其他人遇到此问题并找到解决方法吗?

I'm using Forms 3.3.0.912540, Xamarin.Firebase.Ads 60.1142.1, Xamarin.GooglelayServices.Ads 60.1142.1 我正在使用Forms 3.3.0.912540,Xamarin.Firebase.Ads 60.1142.1,Xamarin.GooglelayServices.Ads 60.1142.1

也许您可以尝试以下操作:在主题中添加属性:

<item name="android:windowDrawsSystemBarBackgrounds">false</item>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM