android 设置TextView水平滚动和解决首行缩进问题

android:ellipsize="marquee"
android:focusable="true"
android:focusableInTouchMode="true"
android:marqueeRepeatLimit="marquee_forever"
android:singleLine="true"

 

然后让这个TextView的id获得焦点。requestFocus();

 

 

textview解决首行缩进问题:setText("\u3000\u3000"+xxxxx);

posted on 2015-12-29 14:14  赵磊磊  阅读(2449)  评论(0编辑  收藏  举报

导航