title: Can not select item in Listview in a Fragment
body: <p>I am trying to print a few items in a listview which is in a Fragment.
  The problem I have encountered is that I can not click, select, an item in my list. The all list is grey. I can not do anything with it, except tick the checkbox in the items. I can scroll up and down but no click on a row.</p>
  
  <p>This is my fragment class :  </p>
  
  <pre><code>public class MyClass extends Fragment
  {
  ArrayList&lt;Element&gt; elements = new ArrayList&lt;Element&gt;();
  @Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container,
          Bundle savedInstanceState) {
  
      View rootView = inflater.inflate(R.layout.backup, container, false);
  
      ListAdapter boxAdapter;
      fillData();
      boxAdapter = new ListAdapter(getActivity().getApplicationContext(), elements);
      ListView lvMain = (ListView) rootView.findViewById(R.id.lvMain);
  
      // I have no idea here on what to do
      lvMain.setClickable(true);
      lvMain.setChoiceMode(2);
      lvMain.setFocusable(true);
      lvMain.setAdapter(boxAdapter);
      lvMain.setChoiceMode(ListView.CHOICE_MODE_SINGLE);
      lvMain.setFocusableInTouchMode(true);
      lvMain.setOnItemClickListener(new AdapterView.OnItemClickListener() {
  
          @Override
          public void onItemClick(AdapterView&lt;?&gt; parent, final View view,
              int position, long id) {
  
          }
  
        });
      return rootView;
  }
  </code></pre>
  
  <p>My List Adapter </p>
  
  <pre><code>public class ListAdapter extends BaseAdapter{
    Context ctx;
    LayoutInflater lInflater;
    ArrayList&lt;Element&gt; objects;
  
    ListAdapter(Context context, ArrayList&lt;Element&gt; ele) {
          ctx = context;
          objects = ele;
          lInflater = (LayoutInflater) ctx
                  .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
      }
  
      @Override
      public View getView(int position, View convertView, ViewGroup parent) {
          View view = convertView;
          if (view == null) {
              view = lInflater.inflate(R.layout.item, parent, false);
          }
  
          Element p = getElement(position);
  
          ((TextView) view.findViewById(R.id.name)).setText(p.getName());
          ((TextView) view.findViewById(R.id.size)).setText(p.getSize().toString());
          ((ImageView) view.findViewById(R.id.ivImage)).setImageResource(p.getImage());
  
          CheckBox cb = (CheckBox) view.findViewById(R.id.cbBox);
          cb.setOnCheckedChangeListener(myCheckChangList);
          cb.setTag(position);
          cb.setChecked(p.isBox());
  
  
          return view;
      }
  </code></pre>
  
  <p>Thanks in advance for your help</p>