title: Toolbar in google map activity
body: <p>I would like add a toolbar to map activity. The problem is that when I run it the space is there but don't show my toolbar. </p>
  
  <p>This is my xml:</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:fitsSystemWindows="true"
      android:orientation="vertical"
      tools:context="com.ruben.my_app.ui.activity.GoogleMapActivity"&gt;
  
      &lt;android.support.v7.widget.Toolbar
          android:id="@+id/toolbar"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:theme="@style/AppTheme.ActionBar"&gt;
      &lt;/android.support.v7.widget.Toolbar&gt;
  
      &lt;fragment xmlns:android="http://schemas.android.com/apk/res/android"
          xmlns:map="http://schemas.android.com/apk/res-auto"
          xmlns:tools="http://schemas.android.com/tools"
          android:id="@+id/map"
          android:name="com.google.android.gms.maps.SupportMapFragment"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          tools:context=".ui.activity.GoogleMapActivity" /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>This is the style:</p>
  
  <pre><code>&lt;style name="AppTheme.ActionBar" parent="Theme.AppCompat.Light.DarkActionBar"&gt;
      &lt;item name="actionMenuTextColor"&gt;#fff&lt;/item&gt;
      &lt;item name="android:actionMenuTextColor"&gt;#fff&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>This is GoogleMapActivity.java:</p>
  
  <pre><code>  public class GoogleMapActivity extends AppCompatActivity implements OnMapReadyCallback {
  
      @BindView(R.id.toolbar)Toolbar toolbar;
  
      private GoogleMap mMap;
      public static int color = 0xFF1C1C1C;
      public static int textColor = 0xFFFFFFFF;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_google_map);
          setSupportActionBar(toolbar);
          SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager()
                  .findFragmentById(R.id.map);
          mapFragment.getMapAsync(this);
      }
  
  
      @Override
      public void onMapReady(GoogleMap googleMap) {
          mMap = googleMap;
          LatLng madrid = new LatLng(40.428462, -3.704952);
  
          mMap.addMarker(new MarkerOptions().position(madrid).title("Madrid"));
          mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(madrid,17));
      }
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/xcAl7.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xcAl7.jpg" alt="enter image description here"></a></p>