要實現標題跑馬燈效果,找了好多資料,終於搞定,在這裏mark一下:
<TextView
android:layout_width="240dp"
android:layout_height="wrap_content"
android:gravity="center"
android:ellipsize="marquee"
android:marqueeRepeatLimit="marquee_forever"
android:clickable="true"
android:focusable="true"
android:focusableInTouchMode="true"
android:singleLine="true" />
詳細介紹:
http://www.cnblogs.com/Gaojiecai/archive/2013/06/18/3142783.html