title: Android - ListFragment OnClickListener is not working
body: <p>I have a ListFragment in my android application, I have got it to work, but the OnClick Listener is not working, I tried just making it so that when any item on the list is selcted a Toast appears and it is not happening, there is no Error so I have no LogCat to post </p>
  
  <pre><code>@Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container,
          Bundle savedInstanceState) {
      // TODO Auto-generated method stub
  
      View v = inflater.inflate(R.layout.main, container, false);
  
      ArrayList&lt;HashMap&lt;String, String&gt;&gt; menuItems = new ArrayList&lt;HashMap&lt;String, String&gt;&gt;();
  
  
  //...
  
      ListAdapter adapter = new SimpleAdapter(getActivity(), menuItems,
              R.layout.list_item,
              new String[] { KEY_NAME, KEY_DESC, KEY_COST }, new int[] {
                      R.id.name, R.id.desciption, R.id.cost });
  
      setListAdapter(adapter);
  
      ListView lv = (ListView)v.findViewById(android.R.id.list);
  
      lv.setOnItemClickListener(new OnItemClickListener() {
  
          @Override
          public void onItemClick(AdapterView&lt;?&gt; parent, View view,
                  int position, long id) {
              // getting values from selected ListItem
  
              Toast.makeText(getActivity().getApplicationContext(), "Not Configured",
                      Toast.LENGTH_SHORT).show();
  
          }
      });
  
      return v;
  }
  </code></pre>
  
  <p>Thanks</p>