TextView 實現跑馬燈效果

<TextView
	android:clickable="true"
        android:focusable="true"
        android:focusableInTouchMode="true"
        android:marqueeRepeatLimit="3"
 />
跑馬燈想要跑起來就需要控件獲取到焦點,想要獲取到焦點clickable、focusable、focusableInTouchMode就需要設置爲true, marqueeRepeatLimit是設置跑馬燈跑的次數



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章