Code examples for Spannable

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
37:	StyleSpan[] spans = spannable.getSpans(0, spannable.length(), StyleSpan.class); 
-
39:	RelativeSizeSpan[] sizeSpan = spannable.getSpans(0, spannable.length(), RelativeSizeSpan.class); 
-
41:	assertEquals('\n', spannable.charAt(spannable.length() - 1)); 
Full Snippet Info
8
CodeRank
212:	MyURLSpan[] link = buffer.getSpans(off, off, MyURLSpan.class); 
-
226:	Selection.setSelection(buffer, 
227:	buffer.getSpanStart(link[0]), 
228:	buffer.getSpanEnd(link[0])); 
-
233:	Selection.removeSelection(buffer); 
Full Snippet Info
8
CodeRank
47:	ClickableSpan[] link = buffer.getSpans(off, off, ClickableSpan.class); 
-
53:	Selection.setSelection(buffer, buffer.getSpanStart(link[0]), buffer.getSpanEnd(link[0])); 
Full Snippet Info
8
CodeRank
94:	URLSpan[] link = buffer.getSpans(off, off, URLSpan.class); 
-
102:	buffer.removeSpan(mLinkFocusStyle); 
-
105:	buffer.setSpan(mLinkFocusStyle, 
106:	buffer.getSpanStart(link[0]), 
107:	buffer.getSpanEnd(link[0]), 
-
116:	buffer.removeSpan(mLinkFocusStyle); 
Full Snippet Info
7
CodeRank
254:	ClickableSpan[] link = buffer.getSpans(off, off, 
-
262:	Selection.setSelection(buffer, 
263:	buffer.getSpanStart(link[0]), 
264:	buffer.getSpanEnd(link[0])); 
Full Snippet Info
7
CodeRank
48:	ClickableSpan[] link = buffer.getSpans(off, off, 
-
55:	Selection.setSelection(buffer, 
56:	buffer.getSpanStart(link[0]), 
57:	buffer.getSpanEnd(link[0])); 
Full Snippet Info
7
CodeRank
48:	ClickableSpan[] links = buffer.getSpans(off, off, 
Full Snippet Info
6
CodeRank
29:	return(str.getSpans(0, str.length() - 1, StyleSpan.class)); 
Full Snippet Info
6
CodeRank
83:	URLSpan[] link = buffer.getSpans(off, off, URLSpan.class); 
-
91:	buffer.removeSpan(mClickedColorStyle); 
-
94:	buffer.setSpan(mClickedColorStyle, buffer.getSpanStart(link[0]), buffer 
95:	.getSpanEnd(link[0]), SpannableString.SPAN_EXCLUSIVE_EXCLUSIVE); 
-
103:	buffer.removeSpan(mClickedColorStyle); 
Full Snippet Info
6
CodeRank
50:	ClickableSpan[] link = buffer.getSpans(off, off, ClickableSpan.class); 
-
57:	Selection.setSelection(buffer, buffer.getSpanStart(link[0]), buffer.getSpanEnd(link[0])); 
Full Snippet Info
7
CodeRank
83:	URLSpan[] link = buffer.getSpans(off, off, URLSpan.class); 
-
91:	buffer.removeSpan(mClickedColorStyle); 
-
94:	buffer.setSpan(mClickedColorStyle, buffer.getSpanStart(link[0]), buffer 
95:	.getSpanEnd(link[0]), SpannableString.SPAN_EXCLUSIVE_EXCLUSIVE); 
-
103:	buffer.removeSpan(mClickedColorStyle); 
Full Snippet Info
6
CodeRank
181:	int current = content.getSpanFlags(what); 
-
184:	content.setSpan(what, 0, 0, USED); 
-
186:	content.removeSpan(what); 
Full Snippet Info
6
CodeRank
93:	ClickableSpan[] link = buffer.getSpans(off, off, 
-
100:	Selection.setSelection(buffer, 
101:	buffer.getSpanStart(link[0]), 
102:	buffer.getSpanEnd(link[0])); 
-
110:	Selection.removeSelection(buffer); 
111:	Touch.onTouchEvent(widget, buffer, event); 
-
115:	return Touch.onTouchEvent(widget, buffer, event); 
Full Snippet Info
6
CodeRank
16:	spannable.setSpan(emptySpan, 1, 1, 0); 
-
18:	spannable.setSpan(unemptySpan, 1, 2, 0); 
-
25:	spans = spannable.getSpans(0, 1, Object.class); 
-
27:	spans = spannable.getSpans(0, 2, Object.class); 
-
29:	spans = spannable.getSpans(1, 2, Object.class); 
-
31:	spans = spannable.getSpans(2, 2, Object.class); 
Full Snippet Info
6
CodeRank
57:	ClickableSpan[] link = buffer.getSpans(off, off, 
-
64:	Selection.setSelection(buffer, 
65:	buffer.getSpanStart(link[0]), 
66:	buffer.getSpanEnd(link[0])); 
Full Snippet Info
7
CodeRank