I want to apply an address bar like a default browser app that can be hidden if a user scrolls down the webpage And then is shown when the user scrolls the webpage at the top then scroll upwards.
Thank you!
Set an on-touch listener for the webwhode, which is 0 to see wv.getScrollY () Checks. Like this:
mWebView.setOnTouchListener (New On-TouchListener) {Public Boolean On Touch (see We, MotionEvent me) {if (me.getAction () == MotionEvent.ACTION_UP} {// You can also try MotionEvent.ACTION_MOVE, but you will receive more calls. If (mWebView.getScrollY () == 0) {// you are at the top, what do you do to show your address bar Required.}} Return false;}}); This example will work if the user scrolls with his finger and his finger is on top Which does not handle all the possible ways that the user is scrolling at the top I want to handle all the ideal solutions that override webvives and connects a listener, whenever you change anything In SEO (SE), you will call.
Comments
Post a Comment