I have a android app and with several Textviews inside linear layyout which is inside scrollview. On a button click I can bring focus and animate any textView (like move left to right). But What I want is, On Scrolling, if a TextView has Focus, animation for this textView should start. Just like this website. I have an idea, which is: If scroll changes, check textview.hasFocus(), if true then startAnimation. But I don't know which method to use for checking 'if page scrolled'? I don't even know if this is right approach? Please help.
Asked
Active
Viewed 488 times
1
-
1did you tried implementing OnScrollChangedListener ? – Saeed Jassani Jun 25 '16 at 10:11
-
@SaeedJassani, well thank you for guiding in right direction. I implemented [this answer at other question](http://stackoverflow.com/a/23365539/4410104) and guess what it works. – feature sky Jun 25 '16 at 10:34
-
Glad that it worked – Saeed Jassani Jun 25 '16 at 10:47