1.先在strings.xml中写上超链接要显示的文字,然后用html的a标签的写法来写就行了
<string name="jump">跳转到<a href="http://www.baidu.com/">百度</a></string>
2.在界面中建一个Text View ,输入以下代码
<TextView
android:id="@+id/jump"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/jump" />
3.在你的MainActivity中的onCreate方法里添加
TextView textjump = (TextView) findViewById(R.id.jump);
textjump.setMovementMethod(LinkMovementMethod.getInstance());