I have a problem with the underlining the textfield used for showing it as the link.
I am using the following code:
final String Email1 = new String("http://myURL/");
Email.setText("W : "+Email1);
Email.setPaintFlags(Email.getPaintFlags() | Paint.UNDERLINE_TEXT_FLAG);
I am getting the output as below :
I am getting the underline for W: also... Please help with the code to omit the underline to W:
你有没有尝试过???
Html.fromHtml("W:"+"<u>" +Email1+ "</u>);
You need to use two TextViews alongside each other. One containing the "W : ", the other with the email address.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.