Code example for Spannable

Methods: setSpanlength

0
				// First convert text to 'spannable' 
				mName.setText(mName.getText(), TextView.BufferType.SPANNABLE); 
				Spannable str = (Spannable) mName.getText(); 
 
				// Strikethrough 
				str.setSpan(new StrikethroughSpan(), 0, str.length(), 
						Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); 
				deleteRow(); 
			} else { 
				mName.setText(mNameString); 
				if (mTypeDrawable > 0) { 
					mType.setImageResource(mTypeDrawable); 
					mType.setOnClickListener(new OnClickListener() { 
 
						public void onClick(View view) { 
							new AlertDialog.Builder(ContentListRow.this 
									.getContext()).setTitle("info").setIcon( 
									mTypeDrawable).setMessage( 
									getResources().getString(mTypeString)) 
									.show();