title: Google Map toolbar on Android does not showing
body: <p>I am working with google maps API, and i have created a custom infowindow for the markers.</p>
  
  <p>I need to show the toolbar maps, but using this method</p>
  
  <pre class="lang-java prettyprint-override"><code>map.getUiSettings().setMapToolbarEnabled(true);
  </code></pre>
  
  <p>when I click the marker, it is shown my infowindow  but not the toolbar.</p>
  
  <p><a href="https://i.stack.imgur.com/mPf8D.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mPf8D.png" alt="google maps needs example"></a></p>
  
  <p>I would like to show the toolbar whenever the marker has been clicked.</p>
  
  <p>Below is my code:</p>
  
  <pre class="lang-java prettyprint-override"><code>@Override
      public void onMapReady(GoogleMap googleMap) {
          mMap = googleMap;
          mMap.getUiSettings().setMapToolbarEnabled(true);
          mMap.setOnMarkerClickListener(this);
          mMap.setOnInfoWindowClickListener(new GoogleMap.OnInfoWindowClickListener() {
              @Override
              public void onInfoWindowClick(Marker marker) {
                  MarkerCouple idtype = (MarkerCouple) marker.getTag();
  
                  if (idtype.getType() == ResourceType.EVENTS 
                       &amp;&amp; currentEvents.get(idtype.getID()) != null) {
  
                      Resources resources = currentResources
                              .get(currentEvents.get(idtype.getID()).getRes_ID());
                      Events event = currentEvents.get(idtype.getID());
  
                      Intent i = new Intent(MainActivity.this, ShowEventActivity.class);
                      i.putExtra(Variable.USER_JSON, user.toJSON());
                      i.putExtra(Variable.EVENT_JSON, event.toJSON());
                      i.putExtra(Variable.RESOURCE_JSON, resources.toJSON());
  
                      startActivityForResult(i, Variable.SHOW_EVENT);
                  }
  
                  if (idtype.getType() == ResourceType.PLACES
                       &amp;&amp; currentPlaces.get(idtype.getID()) != null) {
                      Resources resources = currentResources
                              .get(currentPlaces.get(idtype.getID()).getRes_ID());
                      Places place = currentPlaces.get(idtype.getID());
  
                      Intent i = new Intent(MainActivity.this, ShowPlaceActivity.class);
                      i.putExtra(Variable.USER_JSON, user.toJSON());
                      i.putExtra(Variable.PLACE_JSON, place.toJSON());
                      i.putExtra(Variable.RESOURCE_JSON, resources.toJSON());
  
                      startActivityForResult(i, Variable.SHOW_PLACE);
                  }
              }
          });
  
          mMap.setInfoWindowAdapter(new GoogleMap.InfoWindowAdapter() {
              @Override
              public View getInfoWindow(Marker marker) {
                  View v = getLayoutInflater().inflate(R.layout.marker_preview, null);
                  ImageView m = (ImageView) v.findViewById(R.id.marker_image);
                  m.setImageBitmap(Bitmap.createScaledBitmap(imageToShow, 600, 400, true));
                  return v;
              }
  
              @Override
              public View getInfoContents(Marker marker) {
                  return null;
              }
          });
          new MarkerAsync().execute();
      }
  
      @Override
      public boolean onMarkerClick(final Marker marker) {
          MarkerCouple idtype = (MarkerCouple) marker.getTag();
  
          if (idtype.getType() == ResourceType.EVENTS &amp;&amp; currentEvents.get(idtype.getID()) != null) {
              Events event = currentEvents.get(idtype.getID());
              final Resources resources = currentResources.get(event.getRes_ID());
              Picasso.with(MainActivity.this).invalidate(Variable.DOWNLOAD_URL + resources.getURI());
              new AsyncTask&lt;Void, Void, Void&gt;() {
                  @Override
                  protected Void doInBackground(Void... params) {
                      try {
                          imageToShow = Picasso.with(MainActivity.this).load(Variable.DOWNLOAD_URL + resources.getURI()).get();
                      } catch (IOException e) {
                          e.printStackTrace();
                      }
                      return null;
                  }
  
                  @Override
                  protected void onPostExecute(Void v) {
                      marker.showInfoWindow();
                  }
              }.execute();
          }
  
  
          if (idtype.getType() == ResourceType.PLACES &amp;&amp; currentPlaces.get(idtype.getID()) != null) {
              Places place = currentPlaces.get(idtype.getID());
              final Resources resources = currentResources.get(place.getRes_ID());
              Picasso.with(MainActivity.this).invalidate(Variable.DOWNLOAD_URL + resources.getURI());
              Picasso.with(MainActivity.this).invalidate(Variable.DOWNLOAD_URL + resources.getURI());
              new AsyncTask&lt;Void, Void, Void&gt;() {
                  @Override
                  protected Void doInBackground(Void... params) {
                      try {
                          imageToShow = Picasso.with(MainActivity.this).load(Variable.DOWNLOAD_URL + resources.getURI()).get();
                      } catch (IOException e) {
                          e.printStackTrace();
                      }
                      return null;
                  }
  
                  @Override
                  protected void onPostExecute(Void v) {
                      marker.showInfoWindow();
                  }
              }.execute();
          }
          return true;
      }
  </code></pre>