I have TableLayout in ScrollView which filling up with elements dynamically. It's working fine. But all the elements putting into the TableLayout. I want to handle scroll down and scroll up event and renew only 10 elements in the TableLayout according to direction of scrolling. I used .setOnTouchListener method but it doesn't work properly.