title: android listview under fragment onItemClick not working
body: <p>Don't know why the onItemClick event not working...</p>
  
  <pre><code>public class FragmentList extends Fragment {
      View rootView;
      ListView list;
  
  
      public FragmentList (){}
  
      @Override
      public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
          rootView = inflater.inflate(R.layout.fragment_list, container, false);
          list=(ListView)rootView.findViewById(R.id.list);
  
          list.setOnItemClickListener(new AdapterView.OnItemClickListener() {
              @Override
              public void onItemClick(AdapterView&lt;?&gt; arg0, View arg1, int position, long arg3) {
                  Log.i("test", String.valueOf(position));
  
                  }
              });
          return rootView;
      }
  }
  </code></pre>
  
  <p>Anyone has idea on this. thanks so much</p>