Android bottom navigation bar hiding AdMob adverts - android

I've got an odd bug here with Xamarin Forms on my droid project. The bottom navigation bar (i.e the one with the home, back etc buttons) is hiding the AdMob adverts. 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. 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

Maybe you can try this:
add property to your theme:
<item name="android:windowDrawsSystemBarBackgrounds">false</item>

Related

Android bottom navigation appears when pressing on Flutter bottom navigation bar

I'm using SystemChrome.setEnabledSystemUIOverlays([SystemUiOverlay.top]);
to only display the top system overlay (Where you normally see time and notifications) and disable bottom navigation of the device (3 buttons in android or slider in IOS).
Problem is that when I try to press the Bottom Navigation Bar of my Flutter application, it automatically activates the bottom bar of the system, blocking out the bottom navigation bar of the app.
Resizing the app is not suitable for me. I don't want this to happen, and system navigation should only appear when user slides from the bottom.
Help is appreciated.
Can you share your code so that I can have a better Idea,
// to hide only bottom bar:
SystemChrome.setEnabledSystemUIOverlays ([SystemUiOverlay.top]);
// to hide only status bar:
SystemChrome.setEnabledSystemUIOverlays ([SystemUiOverlay.bottom]);
// to hide both:
SystemChrome.setEnabledSystemUIOverlays ([]);
//to bring them back:
SystemChrome.setEnabledSystemUIOverlays(SystemUiOverlay.values)
Implement the in your code and it should work.

Hiding default navigation bar in app on Android devices

Currently working on a fullscreen mobile app, building using react-native. I have managed to hide the status bar and default navigation bar on Android devices. However, when I start to put in text input tags that prompts a keyboard on the screen, the default navigation bar re-appears and could not be hidden even I've dismissed the keyboard.
Is there any way to prevent the default navigation bar re-appears when the keyboard pops up?
The reasons are that I need to remove the navigation bar to have enough space to locate the needed components on the app UI design. If the navigation bar re-appears the design will be messed up. Thank you for any advice.
I think this is what you're looking for:
static navigationOptions = {
header: null,
};
Put this on top of each screen

Navigation Drawer is blank, buttons work

So i was trying Navigation Drawer and Toolbar (Lollipop) for my first time and i've came a cross a problem that i'm struggling to find a solution.
I've managed to put it to work with Action Bar, but after i configured the new ToolBar to work with my app (and consequently taking action bar off), my navigation drawer is showing nothing but a white panel. Also, it seems that its buttons are working, because when i click a spot in the blank area, the navdrawer immediately closes.
layout_toolbar.xml
activity_homepage.xml
(Resume of) ActivityHomePage.java
The problem itself
Edit: Variables definition
Change in setAdapter(... this to getActivity().getBaseContext()

Android navigation bar on left side

There is a task to display the navigation bar on the left side for android 4.4.2. Nothing of the sort found. Is it possible to do this?
Or, for example, to hide the navigation bar, and on the left side add own custom menu on the same level of layouts hierarchy order content is shifted to the size of the menu?
This solution should work everywhere, not just in one application.
Thanks for the help.
As far as I know you see that navigation bar there because you are using emulator genymotion. On real devices you should not be able to see it. Besides, those back button are physical buttons on some devices like samsung s2.
If you want a menu on the left you should implement navigation drawer. Good luck

Hide navigation bar, android 4.2+

Is it possible to hide navigation bar on e.g. tablets in activity, so it does not appear when user is clicking on the screen?
I want it to appear only when user is swiping from bottom to middle of the screen, just like in e.g. Real Racing 3.
When I use:
myView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);
Unfortunetly navigation bar is hidden, but when user is clicking, it appears again. I want it to work only with this swipe gesture. How it can be achieved?
This is a platform behavior. Apps do not have the sort of control of the navigation bar that you are looking for, and for good reason. All it takes is one app not implementing a way to show the nav bar and the user is stuck. You will have to design your app with the platform's behavior in mind.

Categories

Resources