开发者

Line break height

开发者 https://www.devze.com 2023-03-21 05:27 出处:网络
I have the following TextView, and I use it in a ListView: <TextView xmlns:android=\"http://schemas.android.com/apk/res/android\"

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


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
.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号