Home | History | Annotate | Download | only in widget

Lines Matching defs:SPANNABLE

88 import android.text.Spannable;
421 private Spannable.Factory mSpannableFactory = Spannable.Factory.getInstance();
651 private @Nullable Spannable mSpannable;
1402 bufferType = BufferType.SPANNABLE;
1413 bufferType = BufferType.SPANNABLE;
1431 bufferType = BufferType.SPANNABLE;
1624 mSpannable = (text instanceof Spannable) ? (Spannable) text : null;
2161 * with an argument of {@link android.widget.TextView.BufferType#SPANNABLE BufferType.SPANNABLE}
2163 * the return value from this method to Spannable or Editable, respectively.
5338 final Spannable sp = new SpannableStringBuilder(mText);
5372 void removeMisspelledSpans(Spannable spannable) {
5373 SuggestionSpan[] suggestionSpans = spannable.getSpans(0, spannable.length(),
5379 spannable.removeSpan(suggestionSpans[i]);
5489 * Sets the Factory used to create new {@link Spannable Spannables}.
5491 * @param factory {@link android.text.Spannable.Factory Spannable.Factory} to be used
5493 * @see android.text.Spannable.Factory
5494 * @see android.widget.TextView.BufferType#SPANNABLE
5496 public final void setSpannableFactory(Spannable.Factory factory) {
5510 * When required, TextView will use {@link android.text.Spannable.Factory} to create final or
5511 * intermediate {@link Spannable Spannables}. Likewise it will use
5536 * When required, TextView will use {@link android.text.Spannable.Factory} to create final or
5537 * intermediate {@link Spannable Spannables}. Likewise it will use
5553 * When required, TextView will use {@link android.text.Spannable.Factory} to create final or
5554 * intermediate {@link Spannable Spannables}. Likewise it will use
5560 * stored as a static text, styleable/spannable text, or editable text
5564 * @see #setSpannableFactory(Spannable.Factory)
5651 } else if (type == BufferType.SPANNABLE || mMovement != null) {
5658 Spannable s2;
5660 if (type == BufferType.EDITABLE || text instanceof Spannable) {
5661 s2 = (Spannable) text;
5668 type = (type == BufferType.EDITABLE) ? BufferType.EDITABLE : BufferType.SPANNABLE;
5696 if (text instanceof Spannable && !mAllowTransformationLengthChange) {
5697 Spannable sp = (Spannable) text;
5718 mMovement.initialize(this, (Spannable) text);
5793 * When required, TextView will use {@link android.text.Spannable.Factory} to create final or
5794 * intermediate {@link Spannable Spannables}. Likewise it will use
5800 * stored as a static text, styleable/spannable text, or editable text
5840 * When required, TextView will use {@link android.text.Spannable.Factory} to create final or
5841 * intermediate {@link Spannable Spannables}. Likewise it will use
5847 * stored as a static text, styleable/spannable text, or editable text
5852 * @see #setSpannableFactory(Spannable.Factory)
5933 Spannable spannable;
5934 if (text instanceof Spannable) {
5935 spannable = (Spannable) text;
5937 spannable = mSpannableFactory.newSpannable(text);
5940 SuggestionSpan[] spans = spannable.getSpans(0, text.length(), SuggestionSpan.class);
5944 text = spannable;
5948 spannable.removeSpan(spans[i]);
6993 setText(mText, selectable ? BufferType.SPANNABLE : BufferType.NORMAL);
7914 static void removeParcelableSpans(Spannable spannable, int start, int end) {
7915 Object[] spans = spannable.getSpans(start, end, ParcelableSpan.class);
7919 spannable.removeSpan(spans[i]);
7961 Spannable sp = (Spannable) getText();
9205 * TextView contains spannable text; otherwise it will do nothing.
9210 if (!(mText instanceof Spannable)) {
9538 if (selectAllOnFocus && !(mText instanceof Spannable)) {
9539 setText(mText, BufferType.SPANNABLE);
10032 if (mText instanceof Spannable) {
10085 && mText instanceof Spannable && mLayout != null) {
10130 if (mMovement != null && mText instanceof Spannable && mLayout != null) {
10307 NORMAL, SPANNABLE, EDITABLE
10420 * The text must be spannable and the movement method must allow for arbitary selection.
10430 || (isTextSelectable() && mText instanceof Spannable && isEnabled());
10753 if ((text instanceof Spannable)) {
10754 Selection.setSelection((Spannable) text, text.length());
11079 Selection.removeSelection((Spannable) text);
11083 Selection.setSelection((Spannable) text, start, end);
11155 return mText != null && mText instanceof Spannable;
11861 if (mText instanceof Spannable) {
12072 if (!(mText instanceof Spannable)) {
12073 setText(mText, BufferType.SPANNABLE);
12084 Spannable text = (Spannable) getIterableTextForAccessibility();
12093 Spannable text = (Spannable) getIterableTextForAccessibility();
12139 Selection.setSelection((Spannable) text, start, end);
12141 Selection.removeSelection((Spannable) text);
12529 public void onSpanChanged(Spannable buf, Object what, int s, int e, int st, int en) {
12537 public void onSpanAdded(Spannable buf, Object what, int s, int e) {
12544 public void onSpanRemoved(Spannable buf, Object what, int s, int e) {