question: private void addGroupText ( FormEntryCaption [ ] groups ) { StringBuilder s = new StringBuilder ( "" ) ; String t = "" ; int i ; for ( FormEntryCaption g : groups ) { i = g . getMultiplicity ( ) + 1 ; t = g . getLongText ( ) ; if ( t != null ) { s . append ( t ) ; if ( g . repeats ( ) && i > 0 ) { s . append ( " (" + i + ")" ) ; } s . append ( " > " ) ; } } if ( s . length ( ) > 0 ) { TextView tv = new TextView ( getContext ( ) ) ; tv . setText ( s . substring ( 0 , s . length ( ) - 3 ) ) ; int questionFontsize = Collect . getQuestionFontsize ( ) ; tv . setTextSize ( TypedValue . COMPLEX_UNIT_DIP , questionFontsize - 4 ) ; tv . setPadding ( 0 , 0 , 0 , 5 ) ; mView . addView ( tv , mLayout ) ; } }
target:  // * Add a TextView containing the hierarchy of groups to which the question belongs. //