Lines Matching defs:text
23 import android.text.SpannableStringBuilder;
24 import android.text.Spanned;
25 import android.text.SpannedString;
26 import android.text.style.ForegroundColorSpan;
27 import android.text.style.ReplacementSpan;
41 * Shows the recognized text as a continuous stream of words.
104 * Resets the text view.
115 * Updates the recognized text.
146 // Copy the text and spans to a SpannedString, since editable text
148 // if the text or spans haven't changed. (probably a framework bug)
188 private void addDottySpans(SpannableStringBuilder displayText, String text, int textStart) {
189 Matcher m = SPLIT_PATTERN.matcher(text);
193 DottySpan span = new DottySpan(text.charAt(m.start()), wordStart);
198 private void addColorSpan(SpannableStringBuilder displayText, int color, String text,
202 int end = textStart + text.length();
207 * Sets the final, non changing, full text result. This should only happen at the very end of
243 public void draw(Canvas canvas, CharSequence text, int start, int end,
246 int width = (int) paint.measureText(text, start, end);
278 public int getSize(Paint paint, CharSequence text, int start, int end,
280 return (int) paint.measureText(text, start, end);