title: How to set OnItemClickListener event for ListView in List item of Listview
body: <p>I want to add <code>onClick()</code> event for <code>listview</code>. Because i have <code>listview</code> inside <code>listview</code>. and i want when i click on parent listview item then open new activity, but when i click on child <code>listview</code> item , the code of parent <code>listview</code> item click is not working, How can I give <code>onClick()</code> event for child <code>ListView</code>.</p>
  
  <pre><code> heightListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
              @Override
              public void onItemClick(AdapterView&lt;?&gt; adapterView, View view, int i, long l) {
                  startActivity(new Intent(LocationMapHistory.this,LocationHistoryActivity.class));
              }
          });
  </code></pre>
  
  <p>this code only working if i hide child <code>listview</code> into parent <code>listview</code> item.</p>