简体   繁体   中英

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 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.

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!!

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM