private static View findIndexOfIcon(ArrayList<View> views,int i,int delta){
  final int count=views.size();
  int newI=i + delta;
  while (0 <= newI && newI < count) {
    View newV=views.get(newI);
    if (newV instanceof BubbleTextView || newV instanceof FolderIcon) {
      return newV;
    }
    newI+=delta;
  }
  return null;
}

private static View findIndexOfIcon ( ArrayList < View > views , int i , int delta ) { final int count = views . size ( ) ; int newI = i + delta ; while ( 0 <= newI && newI < count ) { View newV = views . get ( newI ) ; if ( newV instanceof BubbleTextView || newV instanceof FolderIcon ) { return newV ; } newI += delta ; } return null ; }
private helper method to find the index of the next bubbletextview or foldericon in the direction delta .
