title: Navigation Drawer, ListView Items don't show
body: <p>I'm trying do a news sports app with a <code>NavigationDrawer</code>. But when I open the app I want to show a <code>WebView</code> and after from left to come the <code>ListView</code>.  I did something but now the <code>ListView</code> doesn't show the items. I have 4 classes and 2 xml.</p>
  
  <pre><code>package com.baronescu.sportsnews2;
  
  import android.os.Bundle;
  import android.app.Activity;
  import android.app.Fragment;
  import android.app.FragmentManager;
  import android.content.Intent;
  import android.support.v4.widget.DrawerLayout;
  import android.view.View;
  import android.widget.AdapterView;
  import android.widget.AdapterView.OnItemClickListener;
  import android.widget.ArrayAdapter;
  import android.widget.ListView;
  
  public class MainActivity extends Activity {
         String[] menu;
         DrawerLayout dLayout;
         ListView dList;
         ArrayAdapter&lt;String&gt; adapter;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  
  
  
  
  
          menu = new String[]{"Football","Tennis","Basketball","Hockey","Handball"};
          dLayout = (DrawerLayout) findViewById(R.id.drawer_layout);
          dList = (ListView) findViewById(R.id.left_drawer);
          adapter = new ArrayAdapter&lt;String&gt;(this,android.R.layout.simple_list_item_1,menu);
          dList.setAdapter(adapter);
          dList.setSelector(android.R.color.holo_blue_dark);
          dList.setOnItemClickListener(new OnItemClickListener(){
        @Override
        public void onItemClick(AdapterView&lt;?&gt; arg0, View v, int position, long id) {
          dLayout.closeDrawers();
          Bundle args = new Bundle();
          args.putString("Menu", menu[position]);
          Fragment detail = new DetailFragment();
          detail.setArguments(args);
            FragmentManager fragmentManager = getFragmentManager();
          fragmentManager.beginTransaction().replace(R.id.dfurl, detail).commit();
        }
          });
  
  
          Thread timer = new Thread(){
              public void run (){
                  try {
                      sleep(2000);                        
                  } catch (InterruptedException e ){
                      e.printStackTrace();
                  } finally {
                      Intent odu = new Intent ("com.baronescu.sportsnews2.DEFAULTURL");
                      startActivity(odu);
  
                  }   
              }
          };
          timer.start();  
  
  
  
  
    }
  
    @Override
      protected void onPause() {
          // TODO Auto-generated method stub
          super.onPause();
          finish();
      }
  }
  
  
  
  package com.baronescu.sportsnews2;
  
  import android.app.Fragment;
  import android.os.Bundle;
  import android.view.LayoutInflater;
  import android.view.View;
  import android.view.ViewGroup;
  import android.widget.TextView;
  public class DetailFragment extends Fragment {
      TextView text;
      @Override
      public View onCreateView(LayoutInflater inflater,ViewGroup container, Bundle args) {
          View view = inflater.inflate(R.layout.menu_detail_fragment, container, false);
          String menu = getArguments().getString("Menu");
          text= (TextView) view.findViewById(R.id.detail);
          text.setText(menu);
          return view;
      }
  }
  
  
  package com.baronescu.sportsnews2;
  
  import android.app.Activity;
  import android.os.Bundle;
  import android.webkit.WebView;
  import com.baronescu.sportsnews2.OurViewClient;
  
  
  
  public class DefaultUrl extends Activity {
  
      WebView firstnews;
  
      @Override
      public void onCreate(Bundle savedInstanceState) {
          // TODO Auto-generated method stub
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
          firstnews = (WebView) findViewById(R.id.dfurl);
          firstnews.setWebViewClient(new OurViewClient());
  
          firstnews.getSettings().setJavaScriptEnabled(true);
          firstnews.getSettings().setLoadWithOverviewMode(true);
          firstnews.getSettings().setUseWideViewPort(true);
          try {
              firstnews.loadUrl("http://www.digisport.ro");
          } catch (Exception e) {
              e.printStackTrace();
          }
      }
  
  }
  
  
  package com.baronescu.sportsnews2;
  
  import android.webkit.WebView;
  import android.webkit.WebViewClient;
  
  public class OurViewClient extends WebViewClient {
  
      @Override
      public boolean shouldOverrideUrlLoading(WebView v, String url) {
          // TODO Auto-generated method stub
          v.loadUrl(url);
          return true;
      }
  
  }
  
  
  
  
  
  
  &lt;android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/drawer_layout"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:background="@drawable/sportsnews" &gt;
  
      &lt;!-- android:id="@+id/content_frame" --&gt;
      &lt;!-- android:layout_width="match_parent" --&gt;
      &lt;!-- android:layout_height="match_parent" &gt; --&gt;
  
      &lt;WebView
          android:id="@+id/dfurl"
          android:layout_width="match_parent"
          android:layout_height="match_parent" /&gt;
  
      &lt;ListView
          android:id="@+id/left_drawer"
          android:layout_width="240dp"
          android:layout_height="match_parent"
          android:layout_gravity="start"
          android:background="#111"
          android:choiceMode="singleChoice"
          android:divider="@android:color/transparent"
          android:dividerHeight="0dp" /&gt;
  
  &lt;/android.support.v4.widget.DrawerLayout&gt;
  
  
  
  &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:gravity="center"
      android:orientation="vertical" &gt;
  
      &lt;TextView
          android:id="@+id/detail"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          android:textColor="#ffffff"
          android:textSize="40px" /&gt;
  
      &lt;/LinearLayout&gt;
  </code></pre>
  
  <p><strong>manifest.xml</strong></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.baronescu.sportsnews2"
      android:versionCode="1"
      android:versionName="1.0" &gt;
  
      &lt;uses-sdk
          android:minSdkVersion="8"
          android:targetSdkVersion="10" /&gt;
      &lt;uses-permission android:name="android.permission.INTERNET"/&gt;
  
      &lt;application
          android:allowBackup="true"
          android:icon="@drawable/ic_launcher"
          android:label="@string/app_name"
          android:theme="@style/AppTheme" &gt;
          &lt;activity
              android:name=".MainActivity"
              android:label="@string/app_name" &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=".DefaultUrl"
              android:label="@string/app_name" &gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="com.baronescu.sportsnews2.DEFAULTURL" /&gt;
  
                  &lt;category android:name="android.intent.category.DEFAULT" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
  
      &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>