title: Android Title bar leaving space in when application is resumed
body: <p>I am using a Tab Host in my Android App. I have the Titlebar hidden. </p>
  
  <p>When I leave the App and resume to it, I have some strange behaviour.</p>
  
  <p>If I resume to a tab using a list activity with listView.setAdapter, the title bar is hidden and the space it takes up is consumed by the App. However, if I resume to any tab without the listView.setAdapter, the Titlebar is hidden, but space which was used by it is left behind.</p>
  
  <p>This is pushes my tabs (which are positioned at the bottom of the screen) off the screen. The space is once again consumed by my app if I then change to any other tab.</p>
  
  <p>I have tried to invalidate most of the obvious Views in my App without and success. Below is my tab_activity xml. many thanks</p>
  
  <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt;
      &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
          android:orientation="vertical" android:layout_width="fill_parent"
          android:layout_height="fill_parent"&gt;
  
          &lt;TabHost xmlns:android="http://schemas.android.com/apk/res/android"
              android:id="@android:id/tabhost" android:layout_width="fill_parent"
              android:layout_height="fill_parent"&gt;
              &lt;LinearLayout android:orientation="vertical"
                  android:layout_width="fill_parent" android:layout_height="fill_parent"&gt;
                  &lt;FrameLayout android:id="@android:id/tabcontent"
                      android:layout_width="fill_parent" android:layout_height="0dip"
                      android:layout_weight="1" /&gt;
  
                  &lt;TabWidget android:id="@android:id/tabs"
                      android:layout_width="fill_parent" android:layout_height="wrap_content"
                      android:layout_weight="0" /&gt;
              &lt;/LinearLayout&gt;
          &lt;/TabHost&gt;
  
      &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Here is the Manifest</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.tar.projectx" android:versionCode="1"
      android:versionName="1.0"&gt;
      &lt;uses-sdk android:minSdkVersion="8" /&gt;
  
      &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&gt;
      &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/&gt;
      &lt;uses-permission android:name="android.permission.CALL_PHONE" /&gt;
      &lt;uses-permission android:name="android.permission.READ_PHONE_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.GET_ACCOUNTS" /&gt;
      &lt;uses-permission android:name="android.permission.READ_CONTACTS" /&gt;
      &lt;uses-permission android:name="android.permission.WRITE_CONTACTS" /&gt;
  
      &lt;application android:theme="@android:style/Theme.Light.NoTitleBar.Fullscreen" android:icon="@drawable/icon" android:label="@string/app_name" android:debuggable="true"&gt;
          &lt;activity android:name=".Splash" android:theme="@android:style/Theme.Light.NoTitleBar.Fullscreen" android:label="@string/app_name" android:screenOrientation="portrait"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
          &lt;activity android:name="SearchActivity" android:label="SearchActivity" android:screenOrientation="portrait"&gt;&lt;/activity&gt;
          &lt;activity android:name="SearchListActivity" android:label="SearchListActivity" android:screenOrientation="portrait"&gt;&lt;/activity&gt;
          &lt;activity android:name="ContactActivity" android:label="ContactActivity" android:screenOrientation="portrait"&gt;&lt;/activity&gt;
      &lt;/application&gt;
  &lt;/manifest&gt;
  </code></pre>
  
  <p>Interestingly, if I use the code below in the onResume method of my mainActivity which holds the tabhost, once the toast disappears, the view is refreshed and the space at the top is taken up by my app again. Obviously, this isn't much of a fix, but may help someone understand what is happening.</p>
  
  <pre><code>@Override
      protected void onResume() {
          super.onResume();
  
          Toast.makeText(this, "Welcome Back", Toast.LENGTH_LONG).show();
      } 
  </code></pre>