Hello, i need to hide the "Report Problem" alert and the feedbacks. There is a work around for do that? Thanks.
Hey @darkwizzard - we currently don't provide a way to show / hide the UI components. We are looking to add boolean flags in NavigationViewOptions or something of this nature to do this eventually. But unfortunately, we don't have a set timeline for this work at the moment.
@danesfeder this is something I would also like, Hiding of Feedback buttons, audio button etc.
@Danny-James are you using NavigationLauncher?
Yes Mate, NavigationLauncher.startNavigation();
@Danny-James I haven't created the boolean options to hide / show these just yet unfortunately. But, if you used NavigationView like we do in NavigationActivity https://github.com/mapbox/mapbox-navigation-android/blob/master/libandroid-navigation-ui/src/main/java/com/mapbox/services/android/navigation/ui/v5/NavigationActivity.java
you can do it now by binding View feedbackFab = findViewById(R.id.feedbackFab); then just set the visibility to GONE
@danesfeder so would I have to create all my own activities with this and wouldn't be able to use the Drop In Navigation UI ?
NavigationLauncher eventually launches NavigationActivity (inflates NavigationView) but limits the amount of customization you can do. If you include / inflate NavigationView in your own Activity modeled after the NavigationActivity you'll have a lot more options as far as customization. Like hiding the feedback button.
No Problem, So If I Create The NavigationActivity Like You Referenced I Will Basically Have The Acitivty When Calling NavigationLauncher.startNavigation();, or is their more to it than that?
UPDATE: I understand where you're coming from now I've just gone through things, however do we have an ETA when the Boolean will be available in the NavigationLauncher?`
This isn't in our work pipeline right now but it's a pretty simple PR. I'll see if I can sneak it into our next release
@danesfeder thanks buddy.
@danesfeder Did you manage to add the option for this in any of the releases? Ability to hide Audio Button and Ability To Hide Feedback Button.
The Audio Button I Would Personally Like To Keep It's The Feedback Button I'd Like To Hide, Using The NavigationLauncher.
Update here:
This is currently possible when using the NavigationView in your Activity or Fragment.
Once the layout is set and you have used findViewById to find the NavigationView in your layout, you can also find the feedback or sound FABs and hide their visibility:
@Override
public void onNavigationReady(boolean isRunning) {
navigationView.startNavigation(options);
navigationView.findViewById(R.id.feedbackFab).setVisibility(View.GONE);
}
Shows the UI like so:

_Note:_ this must be done in onNavigationReady and after NavigationView#startNavigation is called - the View initializes them to VISIBLE so, if done prior, your changes will be overridden.
This is currently _not_ possible when using NavigationLauncher. Because we automatically create an Activity for you, you don't have access to the reference of NavigationView to add this logic.
We realize this isn't straightforward and the point of this ticket is to add APIs to NavigationView that will streamline this process. For example, NavigationViewOptions#hideFeedback(true) / NavigationLauncherOptions#hideFeedback(true)
@danesfeder Thanks, good idea for the feedback button.
I have noticed that when you go off route sometimes, an AlertView pops up that says "Report a problem". Tapping on this brings up the Feedback Sheet as well. Can we hide this AlertView too in some way? It seems to set its own visibility to Visible whenever it is shown, so I'm not sure if the same trick can be used here.
@cmahopper the AlertView should be fine if you set it to GONE as well. It does set its own visibility, but will only show if the current visibility is set to INVISIBLE https://github.com/mapbox/mapbox-navigation-android/blob/master/libandroid-navigation-ui/src/main/java/com/mapbox/services/android/navigation/ui/v5/alert/AlertView.java#L79-L94
@danesfeder Wonderful, thanks!
This landed with #1251 馃殌
Does #1251 now make it possible to hide the feedback or sound buttons when using NavigationLauncher?
For those who use kotlin
val feedbackFab = mapNavigationView?.findViewById
feedbackFab?.hide()
as setVisibility isn't available for the button out the the library bounds!! Happy coding!!! :+1:
@cmahopper the
AlertViewshould be fine if you set it toGONEas well. It does set its own visibility, but will only show if the current visibility is set toINVISIBLEhttps://github.com/mapbox/mapbox-navigation-android/blob/master/libandroid-navigation-ui/src/main/java/com/mapbox/services/android/navigation/ui/v5/alert/AlertView.java#L79-L94
it is not working and hiding "report problem" alert when off route.
@kanhaiyhacker
navigationView.retrieveAlertView().setVisibility(View.GONE);
Most helpful comment
Update here:
This is currently possible when using the
NavigationViewin yourActivityorFragment.Once the layout is set and you have used
findViewByIdto find theNavigationViewin your layout, you can also find the feedback or sound FABs and hide their visibility:Shows the UI like so:

_Note:_ this must be done in
onNavigationReadyand afterNavigationView#startNavigationis called - theViewinitializes them toVISIBLEso, if done prior, your changes will be overridden.This is currently _not_ possible when using
NavigationLauncher. Because we automatically create anActivityfor you, you don't have access to the reference ofNavigationViewto add this logic.We realize this isn't straightforward and the point of this ticket is to add APIs to
NavigationViewthat will streamline this process. For example,NavigationViewOptions#hideFeedback(true)/NavigationLauncherOptions#hideFeedback(true)