copy from here
vscroll1.setOnScrollChangeListener(new View.OnScrollChangeListener() { @Override public void onScrollChange(View v, int scrollX, int scrollY, int oldScrollX, int oldScrollY) { // Calculate the scroll progress as a percentage int scrollProgress = (scrollY * 100) / vscroll1.getMaxScrollAmount(); // Set the text of textview1 to the scroll progress as an integer value textview1.setText(String.valueOf(scrollProgress)); } });