如何做文字环绕在文本视图长文本在Android [英] how to do text wrapping for long text in text view on android
问题描述
在我的申请,我有很长的文字文本视图。我需要文字环绕像在Android emulator->接触式>手机(接触拨号盘的屏幕短路)。
In my application,i have text view with long text. i need text wrapping like in the android emulator->contact->phone (screen short of dialpad in contact).
但在我的应用程序得到文本换行如下图所示:
but in my application i get text wrapping as follows in the figure:
我曾尝试多种方法它不符合我的要求。
我不需要...在文本视图的右上角。而不是说,我想文本换作为第一个数字(机器人emulator->接触式>电话)。怎么做?请帮帮我。先谢谢了。
i have tried several ways it does not meet my requirement. i do not need the "..." at right corner of the text view. instead of that, i want to wrap the text as in the first figure(android emulator->contact->phone). how to do that? please help me. Thanks in advance.
推荐答案
我觉得设置以下属性您的的TextView 应帮助你实现这一行为:
I think setting the following properties to your TextView should help you to achieve this behavior:
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:ellipsize="none"
android:singleLine="false"
这篇关于如何做文字环绕在文本视图长文本在Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!