首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Display TextView中出现问题

Display TextView中出现问题
EN

Stack Overflow用户
提问于 2011-04-21 12:42:02
回答 3查看 247关注 0票数 0

我已经在我的应用程序中做了一个布局,其中我有TextView,并且我必须显示段落。现在,i9已经将中的所有容器都设置为XML文件,如下所示。但它看不到整个文本,段落的最后一行被剪掉了。。。我该怎么做??帮帮我。。。谢谢。代码:

代码语言:javascript
复制
<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>
EN

Stack Overflow用户

发布于 2011-04-21 13:10:15

你必须为你的TextView设置一些属性。

例如。

layout_width

maxLines

minLines

请参考http://developer.android.com/reference/android/widget/TextView.html

票数 0
EN
查看全部 3 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/5739612

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档