是的最简单的ListView
TextView类似一般UI中的Label,TextBlock等控件,只是为了单纯的显示一行或多行文本
控件标签:<TextView />
控件xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="${relativePackage}.${activityClass}" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#ff0f00"
android:text="@string/hello_world"
android:singleLine="true"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginTop="21dp"
android:text="请访问:18353122239"
android:autoLink="all"
android:textColor="#00ffff" />
</RelativeLayout>
text中如果有电话,邮件,网址且想被识别出时,autolink指向all即可