File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ Step 2. Add the dependency
3030
3131` ` ` sh
3232 dependencies {
33- implementation (' com.github.ChahatGupta:FadeInTextView-Android:1.1 ' ) {
33+ implementation (' com.github.ChahatGupta:FadeInTextView-Android:2.1.0 ' ) {
3434 exclude module: ' app'
3535 }
3636 }
@@ -80,12 +80,30 @@ Step 2. Add the dependency
8080 believe.cht.fadeintextview.TextView textView = (believe.cht.fadeintextview.TextView) findViewById(R.id.textView);
8181
8282 textView.setLetterDuration(250); // sets letter duration programmatically
83- textView.isAnimating (); // returns current animation state (boolean)
8483 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+ });
8598` ` `
8699
87100# # Release History
88101
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
89107* 1.1
90108 * Added preview text in demo app
91109* 1.0
You can’t perform that action at this time.
0 commit comments