public View getView ( Object tag , int index ) { if ( config . commandLogging ) { Log . d ( config . commandLoggingTag , "getView(" + tag + ", " + index + ")" ) ; } View viewToReturn = getter . getView ( tag , index ) ; if ( viewToReturn == null ) { int match = index + 1 ; if ( match > 1 ) { Assert . fail ( match + " Views with id: '" + tag + "' are not found!" ) ; } else { Assert . fail ( "View with id: '" + tag + "' is not found!" ) ; } } return viewToReturn ; }
Returns a View matching the specified tag and index .