title: How to set opacity/ transparancy on view/ List view row
body: <p>In my code i have state for each row of content so in list view if row has state as read, i need to display it with opacity/ transparency but for the view there is no direct method to set alpha.</p>
  
  <p><pre><code>
  if(termDetails.getInt("isRead") > 0) {
      AlphaAnimation animation = new AlphaAnimation(1, 0.2f);
      animation.setFillAfter(true);
      rowView.setAnimation(animation);
  } else {
      AlphaAnimation animation = new AlphaAnimation(1, 1);
      animation.setFillAfter(true);
      rowView.setAnimation(animation);
  }
  </pre></code></p>
  
  <p>Above code works but it is unstable as u scroll through list it looses the consistency.</p>