private Rect calcBounds(int index,Paint paint){
  Rect bounds=new Rect();
  CharSequence title=getTitle(index);
  bounds.right=(int)paint.measureText(title,0,title.length());
  bounds.bottom=(int)(paint.descent() - paint.ascent());
  return bounds;
}

private Rect calcBounds ( int index , Paint paint ) { Rect bounds = new Rect ( ) ; CharSequence title = getTitle ( index ) ; bounds . right = ( int ) paint . measureText ( title , 0 , title . length ( ) ) ; bounds . bottom = ( int ) ( paint . descent ( ) - paint . ascent ( ) ) ; return bounds ; }
calculate the bounds for a view ' s title
