title: How can I get my own status bar below a Map fragment in Android
body: <p>I'm trying to get a google map to occupy almost all the screen, but I want my own full width status bar at the bottom of the screen underneath the map.  To do this, I'm trying to use a LinearLayout, with a TextView for the status bar.  However the status bar never appears.  My xml is</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/activity_main"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical"&gt;
  
      &lt;fragment
          android:id="@+id/map"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          class="com.google.android.gms.maps.MapFragment" /&gt;             
  
      &lt;TextView 
          android:id="@+id/main_status_bar"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_gravity="bottom"
          android:padding = "4sp"
          android:gravity="left|center_vertical"
          android:text="Statusbar"
          /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>What am I doing wrong?</p>
  
  <p>PS: I'm mildly concerned that there are are only two choices for <code>android:layout_height</code>, namely <code>"wrap_content"</code> and <code>"match_parent"</code>.  This doesn't seem to allow the specification of the status bar to be the size it needs (i.e. <code>android:layout_height="wrap_content"</code>), and with the map taking the rest, because to me using <code>android:layout_height="match_parent"</code> logically implies there's no room for anything else.  However, even using </p>
  
  <p><code>android:layout_height="wrap_content"</code></p>
  
  <p>for both doesn't seem to work.</p>