不带点的Andr​​oid单行的TextView [英] Android single line TextView without the dots

查看:109
本文介绍了不带点的Andr​​oid单行的TextView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能有一行的TextView ,在最近的像素切断,并且不添加三个点?

解决方案

 <的TextView
    机器人:ID =@ + ID / text_ivew
    风格=@风格/ Text.Title
    SINGLELINE =假
    机器人:ellipsize =结束
    机器人:行=1
    机器人:文本=文本>< / TextView的>
 

Is it possible to have a single line TextView that cuts off at the nearest pixel and does not add three dots?

解决方案

<TextView
    android:id="@+id/text_ivew"
    style="@style/Text.Title"
    singleLine="false"
    android:ellipsize="end"
    android:lines="1"
    android:text="text"></TextView>

这篇关于不带点的Andr​​oid单行的TextView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆