title: Android listview, change attributes of particular view
body: <p>on my listview I am scrolling to a particular position of it like this</p>
  
  <p>getListView().smoothScrollToPosition(scrollposition+1);</p>
  
  <p>but I also want to "highlight" this view. How do I access the attributes of this particular view to change the background color of this position.</p>
  
  <p>Here is the listview code</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;TextView xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent" android:layout_height="wrap_content" android:id="@+id/currentText"
      android:padding="10dp" android:textSize="24sp" android:textColor="#000000" android:background="@drawable/bglistitem"
      android:gravity="center_vertical|center_horizontal"&gt;
  &lt;/TextView&gt;
  </code></pre>
  
  <p>It is just a textview with a background. I tried doing this:</p>
  
  <pre><code>View highlightView = getListView().getChildAt(scrollposition);
  highlightView.setDrawingCacheBackgroundColor(Color.parseColor("#2580b0"));
  TextView currentText = (TextView)highlightView.findViewById(R.id.currentText);
  currentText.setTextColor(Color.parseColor("#ffffff"));
  </code></pre>
  
  <p>but it always crashes! I can understand why <code>setDrawingCacheBackgroundColor</code>crashes, but even getting the textview from that view crashes.</p>
  
  <p>Help?</p>