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

Adarsh Patel

My Self Adarsh Suryakant Patel. Currently I am working as Assistant Professor at Parul Instiute of Engineering and Technology, MCA Department, Limda, Vadodara. Major Responsibility : * Lectures * Organizing Training and Expert Sessions for * Placement and Recruitment * Faculty Representative