I have webview with linear layout with three buttons at bottom i.e. footer. I want to hide that footer while scrolling up webview and show footer on scrolling down.
Please Help me!!!
I have webview with linear layout with three buttons at bottom i.e. footer. I want to hide that footer while scrolling up webview and show footer on scrolling down.
Please Help me!!!
Try this, I also never tried so let me know if it worked or not.
scroll.setOnTouchListener(new OnTouchListener() {
public boolean onTouch(View v, MotionEvent event) {
if (event.getAction() == MotionEvent.ACTION_UP) {
//show footer
}
else if (event.getAction() == MotionEvent.ACTION_DOWN) {
//hide footer
}
return false;
}
});