TextView title 文字过多滚动 TextView属性android:ellipsize="marquee"不生效的解决办法

来源:互联网 发布:mac ipython 编辑:程序博客网 时间:2024/05/16 05:05

public static void setTextMarquee(TextView textView) {        if (textView != null) {            textView.setEllipsize(TextUtils.TruncateAt.MARQUEE);            textView.setSingleLine(true);            textView.setSelected(true);            textView.setFocusable(true);            textView.setFocusableInTouchMode(true);        }    }
亲测有效!!!!




原文地址 :http://www.cnblogs.com/yuqf/p/5808236.html

阅读全文
0 0