Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

seekbar thumb position

int width = seekBar.getWidth()
            - seekBar.getPaddingLeft()
            - seekBar.getPaddingRight();
int thumbPos = seekBar.getPaddingLeft()
            + width
            * seekBar.getProgress()
            / seekBar.getMax();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #seekbar #thumb #position
ADD COMMENT
Topic
Name
3+2 =