public void buildView(PromptElement prompt) { // font size setTextSize(TypedValue.COMPLEX_UNIT_PX, GlobalConstants.APPLICATION_FONTSIZE); // capitalize the first letter of the sentence setKeyListener(new TextKeyListener(Capitalize.SENTENCES, false)); // needed to make long read only text scroll setHorizontallyScrolling(false); setSingleLine(false); String s = prompt.getAnswerText(); if (s != null) { setText(s); } if (prompt.isReadOnly()) { setBackgroundDrawable(null); setFocusable(false); setClickable(false); } }