Code example for BackgroundColorSpan

0
		if (i < 0) {
			return; 
		} 
 
		Spannable sb = new SpannableString(v.getText().toString());
		sb.setSpan(new BackgroundColorSpan(Color.parseColor(TEXT_HIGHLIGHT_COLOR)), i, i + l, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
		v.setText(sb);
	} 
 
	private void initializeChecked() { 
		checked = new boolean[filtered.size()];
	} 
 
	public void setCheckboxVisible(boolean state) {
		checkboxVisible = state;
		initializeChecked(); 
		notifyDataSetChanged();
	} 
 
	public void clearChecked() { 
Stop searching for code, let great code find you!  Add Codota to your java IDE