Android Question smooth scrollbar position

adastra

Member
Licensed User
Longtime User
i want to change the position of scrollbar smoothly. i am using timer to move positon but it is not smooth
can any one help
 

stevel05

Expert
Licensed User
Longtime User
That's going to depend on what the scroll bar is doing. Is it reactive, i.e. moving as a result of processing in the app, or is the movement of the scrollbar driving the processing?

If you can move the scroll bar at an interval close to 40ms (equates to 25 frames per second) it should be very smooth, but if the app is doing a lot of processing in between, it may not be possible.

Do you have some code you can show that will help understanding?
 
Upvote 0

adastra

Member
Licensed User
Longtime User
That's going to depend on what the scroll bar is doing. Is it reactive, i.e. moving as a result of processing in the app, or is the movement of the scrollbar driving the processing?

If you can move the scroll bar at an interval close to 40ms (equates to 25 frames per second) it should be very smooth, but if the app is doing a lot of processing in between, it may not be possible.

Do you have some code you can show that will help understanding?

thank you stevel05 for reply.
it is still not fine using 40ms. i am attaching my code zip file
 

Attachments

  • test.zip
    72.1 KB · Views: 170
Upvote 0
Top