[英]Android: How to style for a link in file string.xml?
I have created a custom dialog with some information about app. 我创建了一个自定义对话框,其中包含有关应用程序的一些信息。 one of them is a hyperlink with text get from string.xml
file, content like this: 其中之一是从string.xml
文件中获取文本的超链接,内容如下:
<string name="copyright">Bản quyền © 2014 thuộc
<a href="https://www.facebook.com/nguyen.ngochoang.758" style="text- decoration:none;">Nguyễn Ngọc Hoàng</a></string>
It work Ok, but the hyperlink has an underline. 可以,但是超链接带有下划线。 So, how can i style for the link with some css like above, in my code. 因此,如何在我的代码中为具有上述某些CSS的链接设置样式。
Hi use given below properly formatted lines 您好使用下面给出的正确格式化的行
<string name="copyright">Bản quyền © 2014 thuộc
<a href="https://www.facebook.com/nguyen.ngochoang.758" style="text-decoration:none;">Nguyễn Ngọc Hoàng</a></string>
i checked at http://www.w3schools.com/html/tryit.asp?filename=tryhtml_linknoline and is working fine, please copy given lines and paste at given web link and check, it will work fine!! 我在http://www.w3schools.com/html/tryit.asp?filename=tryhtml_linknoline上进行了检查,并且工作正常,请复制给定的行并粘贴到给定的Web链接中并检查,它将正常工作!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.