1. 程式人生 > >Android TextView走馬燈效果

Android TextView走馬燈效果

複製程式碼
 <TextView
        android:id="@+id/myTextView"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:ellipsize="marquee"
        android:marqueeRepeatLimit="marquee_forever"
        android:scrollHorizontally="true"
        android:singleLine="true"
android:text="hello world my dear friend this is a long long string~~~~hello world my dear friend this is a long long string" />
複製程式碼