Try:
wvScroll.scrollTo(offsetX, 0);
There may be a synchronization problem when the offset is set before creating scrollView. In this case, use postDelayed() with runnable , which calls scrollTo
ADDED:
To use postDelayed ():
private Handler mHandler = new Handler();
in onCreate do:
mHandler.postDelayed(new Runnable(){ public void run() { wvScroll.scrollTo(offsetX, 0); } }, 1000);
Tamir scherzer
source share