File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ Step 2. Add the dependency
30
30
31
31
` ` ` sh
32
32
dependencies {
33
- implementation (' com.github.ChahatGupta:FadeInTextView-Android:1.1 ' ) {
33
+ implementation (' com.github.ChahatGupta:FadeInTextView-Android:2.1.0 ' ) {
34
34
exclude module: ' app'
35
35
}
36
36
}
@@ -80,12 +80,30 @@ Step 2. Add the dependency
80
80
believe.cht.fadeintextview.TextView textView = (believe.cht.fadeintextview.TextView) findViewById(R.id.textView);
81
81
82
82
textView.setLetterDuration(250); // sets letter duration programmatically
83
- textView.isAnimating (); // returns current animation state (boolean)
84
83
textView.setText (); // sets the text with animation
84
+ textView.isAnimating (); // returns current boolean animation state (optional)
85
+
86
+ // setting a listener for tracking events (optional)
87
+ textView.setListener(new TextViewListener () {
88
+ @Override
89
+ public void onTextStart () {
90
+ Toast.makeText(getBaseContext (), " onTextStart() fired!" , Toast.LENGTH_SHORT).show ();
91
+ }
92
+
93
+ @Override
94
+ public void onTextFinish () {
95
+ Toast.makeText(getBaseContext (), " onTextFinish() fired!" , Toast.LENGTH_SHORT).show ();
96
+ }
97
+ });
85
98
` ` `
86
99
87
100
# # Release History
88
101
102
+ * 2.1.0
103
+ * Added TextViewListener
104
+ * Created methods to implement TextViewListener in TextView
105
+ * Implemented new additions in the demo app
106
+ * Added new logo by @mansya to the demo app
89
107
* 1.1
90
108
* Added preview text in demo app
91
109
* 1.0
You can’t perform that action at this time.
0 commit comments