TextView:
多行文本显示时,可以适当使用滚动条。基本用法如下:
布局中
<TextView
android:id="@+id/tv_introduce"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:textColor="#8B4513"
**android:scrollbars="vertical"
android:singleLine="false"**
android:textSize="20sp" />
在Acticity中
hosIntroduce = (TextView) view.findViewById(R.id.tv_introduce);
// 文字很多,显示不出来时,加上滚动条
hosIntroduce.setMovementMethod(ScrollingMovementMethod.getInstance());