Code example for ForegroundColorSpan

0
		return defaultValue;
	} 
 
	private URLSpan mCurrentLink;
	private ForegroundColorSpan mLinkFocusStyle = new ForegroundColorSpan(
			Color.RED);
 
	@Override 
	public boolean onTouchEvent(MotionEvent event) {
		CharSequence text = getText();
		int action = event.getAction();
 
		if (!(text instanceof Spannable)) {
			return super.onTouchEvent(event);
		} 
 
		Spannable buffer = (Spannable) text;
 
		if (action == MotionEvent.ACTION_UP
				|| action == MotionEvent.ACTION_DOWN
Connect your IDE to all the code out there  Get Codota for Java