我已经在我的应用程序中做了一个布局,其中我有TextView,并且我必须显示段落。现在,i9已经将中的所有容器都设置为XML文件,如下所示。但它看不到整个文本,段落的最后一行被剪掉了。。。我该怎么做??帮帮我。。。谢谢。代码:
<LinearLayout
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:orientation="vertical"
>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
<Button
android:layout_height="35dip"
android:layout_width="wrap_content"
android:text="1973"
android:textColor="#ffffff"
android:layout_marginTop="7dip"
android:background="@drawable/histry"/>
<TextView
android:layout_height="100dip"
android:layout_width="wrap_content"
android:textSize="12px"
android:layout_marginLeft="5dip"
android:singleLine="false"
android:text="Tony Collier, a cook at the Grandview Foundation in Pasadena, begins collecting and distributing food. Collier receives more food donations from local businesses than anticipated and he shares the food with other organizations helping the hungry. Collier begins the first search for a larger facility by moving the small operation into a two-car garage."/>
</LinearLayout>
</LinearLayout>发布于 2011-04-21 13:10:15
你必须为你的TextView设置一些属性。
例如。
layout_width
maxLines
minLines
请参考http://developer.android.com/reference/android/widget/TextView.html。
https://stackoverflow.com/questions/5739612
复制相似问题