Code example for UnderlineSpan

0
		int g = (int) (mUnfocusedTextColor[1] * fraction + mFocusedTextColor[1]
		        * (1 - fraction));
		int b = (int) (mUnfocusedTextColor[2] * fraction + mFocusedTextColor[2]
		        * (1 - fraction));
		spanndableString = new SpannableString(mCurrent.getText());
		spanndableString.setSpan(new UnderlineSpan(), 0,
		        spanndableString.length(), 0);
		mCurrent.setText(spanndableString);
		mCurrent.setTextColor(Color.argb(255, r, g, b));
	} 
 
	/** 
	 * Update text depending on it's position 
	 *  
	 * @param prevPos 
	 */ 
	void setText(int prevPos) {
		if (prevPos < 0) {
			mPrevious.setText("");
		} 
		else {