title: ListView in Fragment not showing up
body: <p>I'm using this <a href="https://github.com/baoyongzhang/SwipeMenuListView" rel="nofollow">library</a> in a fragment, but when I run the app the SwipeMenuListView is not showing its contents, here on stack I found some guys using the listview inside the onCreateView method, I tried that but it didn't work</p>
  
  <pre><code>public class AutorizadasFragment extends Fragment {
  
      private SwipeMenuListView listView;
      private CustomArrayAdapter adapter;
      private List&lt;String&gt; data;
  
      public AutorizadasFragment() {
      }
  
      @Override
      public View onCreateView(LayoutInflater inflater, ViewGroup container,
                               Bundle savedInstanceState) {
  
          View rootView = inflater.inflate(R.layout.fragment_autorizadas, container, false);
  
  
          return rootView;
      }
  
  
      @Override
      public void onActivityCreated(Bundle savedInstanceState) {
          // TODO Auto-generated method stub
          super.onActivityCreated(savedInstanceState);
  
          data = new ArrayList&lt;String&gt;();
  
          data.add("Teste 1");
          data.add("Teste 2");
          data.add("Teste 3");
          data.add("Teste 4");
          data.add("Teste 5");
  
          listView = (SwipeMenuListView) getActivity().findViewById(R.id.list);
  
          adapter = new CustomArrayAdapter(getActivity(), data);
          listView.setAdapter(adapter);
          SwipeMenuCreator creator = new SwipeMenuCreator() {
  
              @Override
              public void create(SwipeMenu menu) {
                  // create "open" item
                  SwipeMenuItem openItem = new SwipeMenuItem(
                          getActivity());
                  // set item background
                  openItem.setBackground(new ColorDrawable(Color.rgb(0xC9, 0xC9,
                          0xCE)));
                  // set item width
                  openItem.setWidth(90);
                  // set item title
                  openItem.setTitle("Open");
                  // set item title fontsize
                  openItem.setTitleSize(18);
                  // set item title font color
                  openItem.setTitleColor(Color.BLACK);
                  // add to menu
                  menu.addMenuItem(openItem);
  
                  // create "delete" item
                  SwipeMenuItem deleteItem = new SwipeMenuItem(
                          getActivity());
                  // set item background
                  deleteItem.setBackground(new ColorDrawable(Color.rgb(0xF9,
                          0x3F, 0x25)));
                  // set item width
                  deleteItem.setWidth(90);
                  // set a icon
                  deleteItem.setIcon(R.drawable.ic_exit);
                  // add to menu
                  menu.addMenuItem(deleteItem);
              }
          };
  
          listView.setMenuCreator(creator);
      }
  
  
      @Override
      public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
          // TODO Auto-generated method stub
          super.onCreateOptionsMenu(menu, inflater);
          inflater.inflate(R.menu.menu_main, menu);
  
  
      }
  }
  </code></pre>
  
  <p>XML:</p>
  
  <pre><code> &lt;LinearLayout
          style="@style/FormRegister"
          android:orientation="vertical"
          android:weightSum="1"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"&gt;
  
          &lt;com.baoyz.swipemenulistview.SwipeMenuListView
              android:id="@+id/list"
              android:layout_width="fill_parent"
              android:layout_height="match_parent"
              android:scrollbars="vertical"/&gt;
  &lt;/LinearLayout&gt;
  </code></pre>