Is there any way to know when a HorizontalScrollView gets to its right limit?
Is there any way to know when a HorizontalScrollView gets to its right limit?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, but first you will have to override the HorizontalScrollView class and provide your own listener. For some reason the SDK will not let you access the OnScrollChanged Listener directly.
Do the following:
Then you can use this in your code as so:
Set the onScrollChangeListener:
And then do the following in the listener to detect the edges: