您的位置:首页 > 产品设计 > UI/UE

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

2017-08-11 14:30 956 查看
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: