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

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

发布了18 篇原创文章 · 获赞 11 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/INTKILOW/article/details/77097228