title: Listview inside SherlockFragment On Load. Layout not inflating
body: <p>Here is my sample setup </p>
  
  <p>Splashscreen --> Points to Mainactivity --> 2 tabs (Tab1 , Tab2)
  I need to inflate a listview in the Tab1.</p>
  
  <p><img src="https://i.stack.imgur.com/WFau1.png" alt="Listview"></p>
  
  <p>Here are my codes.</p>
  
  <p>From the Splashscreen (<strong>Works Ok</strong>)</p>
  
  <pre><code>protected void onPostExecute(Void result) {
          // TODO Auto-generated method stub
          Intent i = new Intent(SplashScreen.this, MainActivity.class);
          startActivity(i);
      }
  </code></pre>
  
  <p>MainActivity.java (<strong>Works OK - Loads up 2 tabs at the top</strong> )</p>
  
  <pre><code>public class MainActivity extends SherlockFragmentActivity {
  public static String ACTIVE_TAB = "activeTab";  
  
  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  // setContentView(R.layout.categories_list);
  AppRater.displayAsk2Rate(this, 7, 1, false);
  
  getSupportActionBar().setTitle("Keto Recipes");
  getSupportActionBar().setSubtitle("ketozen.com");
  
  final ActionBar actionBar = getSupportActionBar();  
  actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);  
  // add tabs  
  Tab tab1 = actionBar  
                .newTab()  
                .setText("Art")  
                .setTabListener(  
                          new TabListener&lt;TabFragment&gt;(this, "tab1",  
                                    TabFragment.class));  
  actionBar.addTab(tab1);  
  Tab tab2 = actionBar  
                .newTab()  
                .setText("Science")  
                .setTabListener(  
                          new TabListener&lt;TabFragment1&gt;(this, "tab2",  
                                    TabFragment1.class));  
  actionBar.addTab(tab2);  
  // check if there is a saved state to select active tab  
  if (savedInstanceState != null) {  
      getSupportActionBar().setSelectedNavigationItem(  
               savedInstanceState.getInt(ACTIVE_TAB));  
  
  }
  }
  </code></pre>
  
  <p>TabFragment.Java ( <strong>1 st Tab where the LISTVIEW is supposed to load. NOT Working</strong>)</p>
  
  <pre><code>public class TabFragment extends SherlockFragment {  
  @Override  
  public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {  
  // Inflate the layout for this fragment  
  View view = inflater.inflate(R.layout.categories_list, container, false);  
                 // do your view initialization here  
  return view;  
   }  
  </code></pre>
  
  <p>}  </p>
  
  <p>Here is my categories_list XML</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:id="@+id/lytContent"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:background="@color/background"&gt;
  
  &lt;com.google.ads.AdView
  xmlns:googleads="http://schemas.android.com/apk/lib/com.google.ads"
      android:id="@+id/ads"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:background="@color/background"
      googleads:adSize="SMART_BANNER"
      googleads:adUnitId="@string/admob_id"
      android:layout_alignParentBottom="true" /&gt;
  
  &lt;ListView
      android:id="@+id/listCategories"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:layout_above="@+id/ads"
      android:layout_below="@+id/lytTitleBar"
      android:divider="@color/separator"
      android:dividerHeight="1dp"
      android:fadeScrollbars="true"
      android:fadingEdge="none"
      android:fastScrollEnabled="true" /&gt;
  
  &lt;TextView 
      android:id="@+id/txtAlert"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:text="@string/alert"
      android:textColor="@color/text"
      android:textSize="14sp"
      android:layout_centerInParent="true"
      android:visibility="gone"/&gt;
  </code></pre>
  
  <p></p>
  
  <p>Any ideas please.</p>