android textview underline tutorial

android textview underline tutorial

android textview underline

android textview underline is required in many situations when you develop an android app. If you have register button then you want to add one line at the end of the form for existing user click here to login and same for login for click here to register and so on. This android tutorial shows how you can underline your textview using programmatically or using XML.

Have you just started android development? Want to learn android FREE with step by step, Click Here . I have already published 30+ Android tutorials and all tutorials are targeted from basic/beginner level so you can understand my tutorial very easily.

Code Snippet to underline your android textview using XML file.

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

 

Code Snippet to underline your android textview underline programmatically

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);

 

Android is the most easiest language for mobile application development, I am glad that you are working on android app development, For any query, you can post it to me via the contact us form I will try to reply you within 24 hours and will publish an article if you need code sample. I have already published more than 50 android app in the play store, So I know from the development to publish, I also teach students how to learn android app development so I can easily judge that from where you will be stuck up while developing android app, Check out my all tutorial are designed practically and will help you surely.

You are looking for more android tutorial on textview kindly check out following link: Android edittext validation

If you are android developers and want to save your time, Check Android Programming Tips and Tricks

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