private CharSequence ellipsizeString(CharSequence str,TextView textView){
  int width=textView.getWidth() - textView.getCompoundPaddingLeft() - textView.getCompoundPaddingRight();
  return ellipsizeString(str,width,textView.getPaint());
}

private CharSequence ellipsizeString ( CharSequence str , TextView textView ) { int width = textView . getWidth ( ) - textView . getCompoundPaddingLeft ( ) - textView . getCompoundPaddingRight ( ) ; return ellipsizeString ( str , width , textView . getPaint ( ) ) ; }
optimization for when you have textviews that truncate , per http : / / www . martinadamek . com / 2011 / 01 / 05 / performance - of - android - listview - containing - textviews /
