File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
AutoTextSwitcher/src/main/java/com/masoud/autotextswitcher Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 77import android .widget .TextSwitcher ;
88
99import java .util .ArrayList ;
10+ import java .util .List ;
1011import java .util .Arrays ;
1112import java .util .Timer ;
1213import java .util .TimerTask ;
@@ -17,7 +18,7 @@ public class AutoTextSwitcher extends TextSwitcher
1718 private static final int DEFAULT_ANIMATION_TIME = 1000 ; // Milliseconds
1819
1920 private int index = 0 ;
20- private ArrayList <CharSequence > textArray ;
21+ private List <CharSequence > textArray ;
2122 private long changeAnimationTime ;
2223
2324 private Handler handler ;
@@ -118,7 +119,7 @@ public void run()
118119 }
119120
120121
121- public void setTextArray (ArrayList <CharSequence > textArray )
122+ public void setTextArray (List <CharSequence > textArray )
122123 {
123124 if (isTextAnimationIsRunning ())
124125 stopTextAnimation ();
You can’t perform that action at this time.
0 commit comments