Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Make Textview underline

    • 0
    • 2
    • 0
    • 0
    • 1
    • 0
    • 0
    • 0
    • 407
    Comment on it

    Sample code to make a textview underline -

    tvPrivacy3.setPaintFlags(tvPrivacy3.getPaintFlags() | Paint.UNDERLINE_TEXT_FLAG);
    

    And sample code to make textview strike line

    tvPrivacy3.setPaintFlags(tvPrivacy3.getPaintFlags() | Paint.STRIKE_THRU_TEXT_FLAG);
    

    setPaintFlag method of textview sets flags on the Paint being used to display the text and reflows the text if they are different from the old flags.

    getPaintFlag method of textview represents flags on the Paint being used to display the text.

 1 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: