断线高度
我有以下 TextView,并在 ListView 中使用它:
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/text1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:paddingLeft="6dip"
android:textSize="16px"
android:minHeight="5px"/>
TextItem 包含换行符,并且此换行符...太大:就像有一个空行。有没有办法改变换行符的高度?
问候, 程序值
I have the following TextView, and I use it in a ListView:
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/text1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:paddingLeft="6dip"
android:textSize="16px"
android:minHeight="5px"/>
The TextItem contains line breaks, and this line breaks are... too big: it's like having an empty line. Is there a way to change the height of the line break?
Regards,
ProgVal
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没关系,实际上有两个换行符。我正在用换行符替换下载的 HTML 文件的
,但是...每个
后面已经有一个换行符。
Nevermind, there was actually two line breaks. I was replacing the
of a downloaded HTML file by line breaks, but... there was already a line break after every
.