Code example for QuoteSpan

0
	public ArrayList<SpoilerSpan> spoilerSpanList = new ArrayList<SpoilerSpan>();
	 
	public SpoilerSpan(int pos, TextView textView) {	
		this.pos = pos;
		this.textView = textView;
		this.quoteSpan = new QuoteSpan();
	} 
 
	@Override 
	public void onClick(View widget) {
		if (!showing){
			open(); 
		}else { 
			close(); 
		} 
	} 
	 
	private void open(){ 
		if (showing) return;
		Editable ed = (Editable)textView.getText();
		pos = ((Spannable) ed).getSpanEnd(this);