Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/opengl/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在android中向上滚动webview时隐藏页脚?_Android_Scroll_Webview_Footer - Fatal编程技术网

如何在android中向上滚动webview时隐藏页脚?

如何在android中向上滚动webview时隐藏页脚?,android,scroll,webview,footer,Android,Scroll,Webview,Footer,我有线性布局的webview,底部有三个按钮,即页脚。我想在向上滚动webview时隐藏该页脚,在向下滚动时显示页脚 请帮帮我 试试这个,我也从未试过,所以请告诉我它是否有效 scroll.setOnTouchListener(new OnTouchListener() { public boolean onTouch(View v, MotionEvent event) { if (event.getAction() == Moti

我有线性布局的webview,底部有三个按钮,即页脚。我想在向上滚动webview时隐藏该页脚,在向下滚动时显示页脚


请帮帮我

试试这个,我也从未试过,所以请告诉我它是否有效

 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;
            }
    });

设置scrollview侦听器并隐藏页脚。@Surender请详细说明..检查这里-,可能您会得到一些帮助。我认为该示例适用于scrollview。我想要webviewoops抱歉。。!!检查这一个这是为webview-对不起,兄弟,那么我不知道