一、简介
也是TextView显示文本控件两种方法
也是显示丰富的文本
二、方法
TextView两种显示link的方法
1)通过TextView里面的类html标签
* 1、设置好html标签的文本
String text1="<font color='red'><i>你好啊,陌生人</i></font><br/>";
text1+="<a href='http:///apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <TextView android:id="@+id/tv_one" android:layout_width="match_parent" android:layout_height="wrap_content" /> <TextView android:id="@+id/tv_two" android:layout_width="match_parent" android:layout_height="wrap_content" android:autoLink="all" /></LinearLayout>
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持。