int width = seekBar.getWidth() - seekBar.getPaddingLeft() - seekBar.getPaddingRight(); int thumbPos = seekBar.getPaddingLeft() + width * seekBar.getProgress() / seekBar.getMax();