Code example for Spanned

Methods: subSequence

0
          editText.setFilters(new InputFilter[] { new InputFilter() {
            @Override     
            public CharSequence filter(CharSequence source, int start,    
                    int end, Spanned dest, int dstart, int dend) {    
					if (!value) {
						return source.length() < 1 ? dest.subSequence(dstart, dend) : "";
					} else { 
						return null; 
					} 
            }     
          }});     
 
    	} 
    } 
 
	 
	public static class ViewHolder { 
		public ViewHolder() { 
		} 
		public View convertView;
		TextView[] holdTextViews ;