Is it possible to show MapToolbar always on map load? Actually when I click on info window of marker, I am able to see the direction and map button. But I want these both buttons visibility by default on map load.
To enable map toolbar I am doing :
myMap.getUiSettings().setMapToolbarEnabled(true);
Your code is correct but this way you get effect after selection the marker by user. So, if you want to display google map toolbar automatically you should use lite mode of the map.
To make it add below code to your fragment xml. Should help.
xmlns:map="http://schemas.android.com/apk/res-auto"
map:liteMode="true"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With