private void setRowAttribute ( AttributeSet attributes , int r ) { if ( r >= rowAttributes . size ( ) ) { for ( int i = rowAttributes . size ( ) ; i <= r ; i ++ ) { rowAttributes . add ( null ) ; } } rowAttributes . set ( r , attributes ) ; }
Sets a row attribute adding padding to the underlying array as necessary to ensure it is large enough to hold the attribute at the requested position .