rosenpin / fading-text-view

A TextView that changes its content automatically every few seconds
1.74k stars 224 forks source link

setTimeout(JAVA) #31

Closed nightcrawlerfemi closed 1 week ago

nightcrawlerfemi commented 1 week ago

The setTimeout in java doesn't display and i can't also use the app:timeout on xml, kindly advise

nightcrawlerfemi commented 1 week ago
fadetext
rosenpin commented 1 week ago

You are trying to use a deprecated method. this is the new function signature:
https://github.com/rosenpin/fading-text-view/blob/79d89e66926326b3bdc40c3b846996eeaddcc9f4/fadingtextview/src/main/java/com/tomer/fadingtextview/FadingTextView.kt#L198

rosenpin commented 1 week ago

Also note that the new function uses Kotlin's Duration object, so if you're using a Java only project you might need to add kotlin to your project