abhishek007p Active Member Licensed User Longtime User Sep 12, 2026 #1 i have a simple app (using non B4XPages) which displays content in webview and on bottom of app banner ads is displayed. but now i noticed the ads is appearing behind the navigationbar. adding "* 2" seems to fix it. wants to know if this approach is correct. no problem with app title as im using CreateResourceFromFile(Macro, Themes.LightTheme). target SDK is 36 Code: Copy Activity.AddView(BannerAd, 0dip, 100%y - (AdaptiveSize.Get("height") * 2), AdaptiveSize.Get("width"), AdaptiveSize.Get("height")) Attachments Screenshot_20260912_234937.jpg 57.3 KB · Views: 94 Last edited: Sep 12, 2026
i have a simple app (using non B4XPages) which displays content in webview and on bottom of app banner ads is displayed. but now i noticed the ads is appearing behind the navigationbar. adding "* 2" seems to fix it. wants to know if this approach is correct. no problem with app title as im using CreateResourceFromFile(Macro, Themes.LightTheme). target SDK is 36 Code: Copy Activity.AddView(BannerAd, 0dip, 100%y - (AdaptiveSize.Get("height") * 2), AdaptiveSize.Get("width"), AdaptiveSize.Get("height"))
B Brian Dean Well-Known Member Licensed User Longtime User Sep 12, 2026 #2 You say that your app does not use B4XPages and that you have moved to SDK 36. That should mean that you have modified your layout to adapt for edge-to-edge enforcement as described here. If you have not made those changes then I expect that explains the effect that you describe. I don't use banner ads myself so I cannot be certain. Upvote 0
You say that your app does not use B4XPages and that you have moved to SDK 36. That should mean that you have modified your layout to adapt for edge-to-edge enforcement as described here. If you have not made those changes then I expect that explains the effect that you describe. I don't use banner ads myself so I cannot be certain.
sirjo66 Well-Known Member Licensed User Longtime User Sep 13, 2026 #3 If you want a very simple solution take a look at https://www.b4x.com/android/forum/t...r-traditional-non-b4xpages-activities.171821/ Upvote 0
If you want a very simple solution take a look at https://www.b4x.com/android/forum/t...r-traditional-non-b4xpages-activities.171821/