title: How to get focused child of ListView?
body: <p>I have a ListView in which i add row items dynamically. Each row has a no of childs. Now i am setting on click listeners on these childs, and in them it asks me to keep these child items final, it works fine with them and it is ok to do this as i am creating a class in each on click listener.</p>
  
  <p>Here isFree is a final checkBox.</p>
  
  <pre><code>isFree.setOnCheckedChangeListener(new OnCheckedChangeListener() {
      @Override
      public void onCheckedChanged(CompoundButton arg0, boolean arg1) {
          // TODO Auto-generated method stub
          if (isFree.isChecked()){...}
      }
  });
  </code></pre>
  
  <p>But i dont feel it as a good programming practice, i want to use some function which should detect which child was clicked and then i should be able to access its row using getParent and then its sibling items using getChildAt(index)
  So, i used this:</p>
  
  <pre><code>isFree.setOnCheckedChangeListener(new OnCheckedChangeListener() {
      @Override
      public void onCheckedChanged(CompoundButton arg0, boolean arg1) {
          // TODO Auto-generated method stub
          CheckBox tv=(CheckBox) getCurrentFocus();
          TableRow row = (TableRow)tv.getParent();
          TextView tv1=(TextView) row.getChildAt(5);
          if (tv.isChecked()){...}
      }
  });
  </code></pre>
  
  <p>But when i use it, on focussed item actualy returns the listview, but i want focused item in the row.</p>