title: Get child view inside a Listview Adapter
body: <p>Inside my getView method I want to get a specific child view. I know that my adapter holds several items, by doing calling getCount:</p>
  
  <pre><code>getCount();
  </code></pre>
  
  <p>According to the JavaDoc: </p>
  
  <pre><code>public abstract int getCount () 
  Added in API level 1
  How many items are in the data set represented by this Adapter.
  </code></pre>
  
  <p>Now in my getView method:</p>
  
  <pre><code>public View getView(final int position, View convertView, ViewGroup parent) {
  
     View lastAddedItem = parent.getChildAt(getCount()-1);
     if(lastAddedItem == null)  {
       Log.w("ListAdapter", "View is null");
     }
  
  }
  </code></pre>
  
  <p>This message always appears in the <code>LogCat</code>, which means that the View I try to grab is <code>Null</code>. </p>
  
  <p>I've also tried this:</p>
  
  <pre><code>View lastAddedItem = parent.getChildAt(parent.getChildCount()-1);
  </code></pre>
  
  <p>So how can I grab a specific view from my <code>ViewGroup</code> object? </p>