android - Setting thumb to a particular position(not the offset) of seekbar programmatically? -


i have customized seekbar in updating progress , maximum amplitude of sound. seekbar varies according sound detection , thumb shows maximum amblitude of sound. want set position of thumb particular position(max amblitude) set progress in seekbar. had gone through loads of questions , answers , ran through developer docs. in developer docs mentioned offsets can given maintains thumb off track of progress.

from developer doc setthumboffset(int thumboffset)-- sets thumb offset allows thumb extend out of range of track.

is there possible way set thumb particular position. sample shown below. in had set thumbs offset showing sample, instead of want set thumb accurate position.

enter image description here

i think set position of thumb using setprogress(int progress), in seekbar, thumb shown @ end of progress meter.
if want set thumb's position independent progress, implement own seekbar extends absseekbar, refer src of seekbar.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -