android textview underline

      Comments Off on android textview underline

android textview underline

android textview underline

android textview underline is ready to copy paste android sample code.

<string name=”variable”>Existing User <u>Click Here to Login</u></string>

TextView tv1 = (TextView) view.findViewById(R.id.textview1);
SpannableString mycontent = new SpannableString(“Click Here to Register”);
mycontent.setSpan(new UnderlineSpan(), 0, mycontent.length(), 0);
tv1.setText(content);

check more android tutorial now