[英]How to remove phone number underline?
I tried many technique to remove phone number underline but without success, this is not for web view or URL, the current textview is:我尝试了许多技术来删除电话号码下划线但没有成功,这不适用于 web 视图或 URL,当前的 textview 是:
<TextView
android:id="@+id/text_mobile"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="18dp"
android:autoLink="phone"
android:linksClickable="true"
android:textIsSelectable="false"
android:textColor="@color/Blue"
android:text="mobile" />
You can check and reverse adding underline in Textview (ref: Can I underline text in an Android layout? )您可以在 Textview 中检查和反向添加下划线(参考: 我可以在 Android 布局中为文本加下划线吗? )
Remove if you are using underline dynamic text in your code or a string resource xml file, which supports HTML tags like <b></b>, <i></i>
and <u></u>
.如果您在代码中使用下划线动态文本或字符串资源 xml 文件,则删除该文件,该文件支持 HTML 标签,如<b></b>, <i></i>
和<u></u>
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.