File tree 1 file changed +3
-2
lines changed
AutoTextSwitcher/src/main/java/com/masoud/autotextswitcher
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 7
7
import android .widget .TextSwitcher ;
8
8
9
9
import java .util .ArrayList ;
10
+ import java .util .List ;
10
11
import java .util .Arrays ;
11
12
import java .util .Timer ;
12
13
import java .util .TimerTask ;
@@ -17,7 +18,7 @@ public class AutoTextSwitcher extends TextSwitcher
17
18
private static final int DEFAULT_ANIMATION_TIME = 1000 ; // Milliseconds
18
19
19
20
private int index = 0 ;
20
- private ArrayList <CharSequence > textArray ;
21
+ private List <CharSequence > textArray ;
21
22
private long changeAnimationTime ;
22
23
23
24
private Handler handler ;
@@ -118,7 +119,7 @@ public void run()
118
119
}
119
120
120
121
121
- public void setTextArray (ArrayList <CharSequence > textArray )
122
+ public void setTextArray (List <CharSequence > textArray )
122
123
{
123
124
if (isTextAnimationIsRunning ())
124
125
stopTextAnimation ();
You can’t perform that action at this time.
0 commit comments