title: setOnItemclicklistner for simplelistitem1 or simplelistitem2
body: <p>I am using android built in layout android.R.layout.simple_list_item 2. I wanted to perform <strong>onItemclicklistner()</strong> for the items in this layout. I couldn't find the resource id for this layout without which I couldn't find a way to perform the listner function. The examples I have seen so far is</p>
  
  <pre><code>ListView list = (ListView) findViewById(R.id.mylist); // Since I am using built in layout I couldn't figure out the resourse id as in this case.
  list.setOnItemClicklistner();
  </code></pre>
  
  <p>So my problem is without knowing the resourse id of the built in layout "simple_list_item 2" how can I create a Listview object. and without having a ListView Object I am unable to access setOnItemClickListner(). Hope I delivered the question in a meaningful way. Thanks</p>