Code example for ForegroundColorSpan

Methods: setSpan

0
		mEditText = editText;
	} 
	public void afterTextChanged(Editable s) {}
	public void beforeTextChanged(CharSequence s, int start, int count, int after) {}
	public void onTextChanged(CharSequence s, int start, int before, int count) {
		mEditText.getText().setSpan(new ForegroundColorSpan(Color.WHITE), start, start, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
	} 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE