【发布时间】:2018-06-22 15:26:01
【问题描述】:
说明
我在里面使用了textview,里面有一个链接,当我点击它时,它会进入网页。为了创建一个链接,我使用了 html 的锚标记。
这是我创建链接的xml文件
<TextView
android:text="@string/Home"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="fill_horizontal"
android:layout_weight="0.5"
android:clickable="true"
android:textColorLink="#b3b3b3"
android:textSize="15dp"
android:id="@+id/Terms" />
这是我创建链接的 string.xml 文件
<string name="Home"><a href="https://www.google.co.in/ " style="color:rgb(179, 179, 179);text-decoration:none">Home</a>
我尝试使用 css 样式 text-decoration:none 不起作用。
我也试过这个链接Remove underline from links in TextView - Android 在那个 spannable 在 c# 中不起作用
问题
如何去掉超链接的下划线?
【问题讨论】:
标签: c# xamarin.android