title: Can't set a Custom Listview on ListFragment
body: <p>I'm trying to set a Custom Listview layout on a ListFragment, I've been reasearching everywhere and i still cant get it to work. I'm new programming with android, so  I'll  really appreciate your help.</p>
  
  <p><strong>This is my listFragment class</strong></p>
  
  <pre><code>public class ListCins  extends ListFragment {
  public static ArrayList&lt;Cin&gt; cins;
  private ListView listView;
  private pListAdapter mAdapter;
  
  public static ListCins newInstance() {
  ListCins f = new ListCins();
  return f;
  }
  
  @Override
  public void onActivityCreated(Bundle savedInstanceState) { 
  super.onActivityCreated(savedInstanceState);
  //Los fragments soportan presentar un msj cuando la lista esta vacia.
  setEmptyText("Nothing yet, but working");    
  
  }
  
  
  @Override
  public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  
  
  
  
  cins = new ArrayList&lt;Cin&gt;();
  cins.add(new Cin("Agenter", 1));
  cins.add(new Cin("Ora", 2));
  cins.add(new Cin("Vistia", 2));
  cins.add(new Cin("Bluel", 2));
  
  
  mAdapter = new pListAdapter(this.getActivity(), cins);
  setListAdapter(mAdapter);
  
  
  }
  
  
  
  @Override
  public void onViewCreated(View view, Bundle savedInstanceState) {
  
  
  super.onViewCreated(view, savedInstanceState);      
  setEmptyText("Nothing yet 2, but working");
  registerForContextMenu(getListView());
  
  setHasOptionsMenu(true);
  }
  
  
  
  
  
  
  @Override
  public void onListItemClick(ListView l, View v, int position, long id) {
  super.onListItemClick(l, v, position, id);
  
  Toast mTosat = Toast.makeText(this.getActivity(),"clicked:"+String.valueOf(position)+" "+cins.get(position).nombre , 200);
  mTosat.show();
  
  
  }
  
  
  
  }
  </code></pre>
  
  <p><strong>And this is the list_fragment.xml i want to apply to the listfragment.</strong></p>
  
  
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  
  
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:orientation="vertical"
  android:paddingLeft="10dp"
  android:paddingRight="10dp"&gt;
  
  
  &lt;ListView
  android:id="@id/android:list"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:layout_weight="1"
  android:drawSelectorOnTop="false" /&gt;
  
  
  &lt;TextView
  android:id="@android:id/empty"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:text="No data"        /&gt;
  &lt;/LinearLayout&gt;  
  </code></pre>
  
  <p>I also have a custom arrayAdapter, but i dont know if it has something to do with the custom listview layout.</p>
  
  <p><strong>Thanks in advance...</strong></p>