本文整理了Java中android.webkit.WebView.pageUp()
方法的一些代码示例,展示了WebView.pageUp()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebView.pageUp()
方法的具体详情如下:
包路径:android.webkit.WebView
类名称:WebView
方法名:pageUp
暂无
代码示例来源:origin: RobotiumTech/robotium
public void run(){
canScroll = webView.pageUp(allTheWay);
}
});
代码示例来源:origin: ankidroid/Anki-Android
mCard.pageUp(false);
if (mDoubleScrolling) {
mCard.pageUp(false);
mCard.pageUp(false);
if (mDoubleScrolling) {
mCard.pageUp(false);
代码示例来源:origin: hidroh/materialistic
@Override
public void onPageStarted(android.webkit.WebView view, String url, Bitmap favicon) {
super.onPageStarted(view, url, favicon);
view.pageUp(true);
WebView webView = (WebView) view;
if (TextUtils.equals(url, webView.mPendingUrl)) {
view.setVisibility(VISIBLE);
}
if (mClient != null) {
mClient.onPageStarted(view, url, favicon);
}
}
代码示例来源:origin: com.jayway.android.robotium/robotium-solo
public void run(){
canScroll = webView.pageUp(allTheWay);
}
});
代码示例来源:origin: luili16/UIMocker
@Override
public boolean pageUp(boolean top) {
return mWebView.pageUp(top);
}
代码示例来源:origin: luili16/UIMocker
public void run() {
mCanScroll = webView.pageUp(allTheWay);
}
});
代码示例来源:origin: bkhezry/ExtraWebView
@Override
public boolean scrollToPrevious() {
if (mFullscreen) {
mWebView.pageUp(false);
return true;
} else {
return mScrollableHelper.scrollToPrevious();
}
}
代码示例来源:origin: bkhezry/ExtraWebView
@Override
public void scrollToTop() {
if (mFullscreen) {
mWebView.pageUp(true);
} else {
mScrollableHelper.scrollToTop();
}
}
代码示例来源:origin: stackoverflow.com
@Override
public boolean dispatchKeyEvent(KeyEvent event) {
int action = event.getAction();
int keyCode = event.getKeyCode();
WebView scrollView = (WebView) findViewById(R.id.ch01);
switch (keyCode) {
case KeyEvent.KEYCODE_VOLUME_UP:
if (action == KeyEvent.ACTION_DOWN) {
scrollView.pageUp(false);
}
return true;
case KeyEvent.KEYCODE_VOLUME_DOWN:
if (action == KeyEvent.ACTION_DOWN) {
scrollView.pageDown(false);
}
return true;
default:
return super.dispatchKeyEvent(event);
}
}
代码示例来源:origin: bkhezry/ExtraWebView
private void setFullscreen(boolean isFullscreen) {
if (!getUserVisibleHint()) {
return;
}
mFullscreen = isFullscreen;
mControls.setVisibility(isFullscreen ? VISIBLE : View.GONE);
AppUtils.toggleWebViewZoom(mWebView.getSettings(), isFullscreen);
if (isFullscreen) {
mScrollView.removeView(mScrollViewContent);
mFullscreenView.addView(mScrollViewContent);
} else {
reset();
mWebView.pageUp(true);
mFullscreenView.removeView(mScrollViewContent);
mScrollView.addView(mScrollViewContent);
}
}
内容来源于网络,如有侵权,请联系作者删除!