title: Android - Listview in fragment not scrolling
body: <p>I am trying to create a simple listview with items in them. I have done this ton of times but this time for some reason, the scrolling does not work. I am using basic adapter to display items but still it does not work. Been stuck on this for 6 hours. Any help would be greatly appreciated.<strong>The ListView used in the fragment does not scroll.</strong></p>
  
  <p>The Fragment that has the listview:</p>
  
  <pre><code>public class BlankFragment extends Fragment {
  
  String[] itemsList = {"uguga", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "g", "h", "i", "j", "k"};
  View mView;
  ListView mListView;
  ArrayAdapter&lt;String&gt; mAdapter;
  
  public BlankFragment() {
      // Required empty public constructor
  }
  
  
  @Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container,
                           Bundle savedInstanceState) {
  
      mView = inflater.inflate(R.layout.fragment_blank, container, false);
      mListView = (ListView) mView.findViewById(R.id.newsFeedListView);
      mAdapter = new ArrayAdapter&lt;String&gt;(getActivity().getBaseContext(), android.R.layout.simple_dropdown_item_1line, android.R.id.text1, itemsList);
      mListView.setAdapter(mAdapter);
      return mView;
  }
  }
  </code></pre>
  
  <p><strong>fragment_blank.xml</strong></p>
  
  <pre><code>&lt;ListView
  android:layout_width="match_parent"
  android:layout_height="wrap_content"
  android:dividerHeight="1dp"
  android:divider="#000000"
  android:id="@+id/newsFeedListView"
  xmlns:android="http://schemas.android.com/apk/res/android"/&gt;
  </code></pre>
  
  <p><strong>activity_main.xml</strong></p>
  
  <pre><code>&lt;android.support.v4.widget.DrawerLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools"
  android:id="@+id/drawerLayout"
  android:layout_width="match_parent"
  android:layout_height="match_parent"&gt;
  
      &lt;FrameLayout android:layout_width="match_parent"
                   android:layout_height="match_parent"
                   android:id="@+id/content_frame"
                   tools:context=".MainActivity" /&gt;
  
      &lt;ListView
          android:layout_width="250dp"
          android:layout_height="match_parent"
          android:id="@+id/drawerItemsListView"/&gt;
  
  &lt;/android.support.v4.widget.DrawerLayout&gt;
  </code></pre>
  
  <p><strong>Main Activity.java</strong></p>
  
  <pre><code>public class MainActivity extends ActionBarActivity {
  
  DrawerLayout mDrawerLayout;
  ListView mDrawerListView;
  NewsFeedFragment mNewsFeedFragment;
  ActionBar mActionBar;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  
      initReferences();
      initFragments();
      initProperties();
  }
  
  private void initProperties() {
      mActionBar.setBackgroundDrawable(new ColorDrawable(0xFF326CBB));
  }
  
  private void initFragments() {
  
      mNewsFeedFragment = NewsFeedFragment.newInstance();
      getSupportFragmentManager().beginTransaction().add(R.id.content_frame, new BlankFragment()).commit();
  }
  
  private void initReferences() {
  
      mDrawerLayout = (DrawerLayout) findViewById(R.id.drawerLayout);
      mDrawerListView = (ListView) findViewById(R.id.drawerItemsListView);
      mActionBar = getSupportActionBar();
  }
  
  }
  </code></pre>