Code example for UnderlineSpan

0
							&& endl < content.getSpanEnd(boldSpans[0])) {
						content.removeSpan(boldSpans[0]);
						content.removeSpan(underlineSpans[0]);
						 
						content.setSpan(new StyleSpan(Typeface.BOLD), 0, endl, Spanned.SPAN_INCLUSIVE_INCLUSIVE);
						content.setSpan(new UnderlineSpan(), 0, endl, Spanned.SPAN_INCLUSIVE_INCLUSIVE);
					} 
				} 
				 
				updateTitle(content.toString());
			} 
 
			public void beforeTextChanged(CharSequence s, int start, int count,
					int after) {
			} 
 
			public void onTextChanged(CharSequence s, int start, int before,
					int count) {
			} 
			 
		});