本文整理了Java中android.webkit.WebView.setLongClickable()
方法的一些代码示例,展示了WebView.setLongClickable()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebView.setLongClickable()
方法的具体详情如下:
包路径:android.webkit.WebView
类名称:WebView
方法名:setLongClickable
暂无
代码示例来源:origin: stackoverflow.com
public class Seccion1 extends Fragment
{
WebView mWebView;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View rootView = inflater.inflate(R.layout.seccion3, container, false);
mWebView = (WebView)rootView.findViewById(R.id.lectura_webView);
//Archivo de ejemplo. Cambiar por el adecuado.
--> THIS IS THE LINE THAT GIVES THE ERROR
mWebView.loadUrl("file:///android_asset/productividad/ejemplo1.html");
mWebView.getSettings().setBuiltInZoomControls(true);
mWebView.getSettings().setDisplayZoomControls(false);
mWebView.setLongClickable(true);
mWebView.setOnLongClickListener(new View.OnLongClickListener() {
@Override
public boolean onLongClick(View v) {
return true;
}
});
return rootView;
}
}
代码示例来源:origin: apps4av/avare
mWebView.setLongClickable(false);
代码示例来源:origin: AnyChart/AnyChart-Android
webSettings.setJavaScriptEnabled(true);
webSettings.setLoadWithOverviewMode(true);
webView.setLongClickable(true);
webView.setOnLongClickListener(new OnLongClickListener() {
@Override
代码示例来源:origin: ymback/NGA-CLIENT-VER-OPEN-SOURCE
@SuppressWarnings("static-access")
public static void handleContentTV(final WebView contentTV, final MessageArticlePageInfo row, int bgColor, int fgColor, Context context) {
final WebViewClient client = new WebViewClientEx((FragmentActivity) context);
contentTV.setBackgroundColor(0);
contentTV.setFocusableInTouchMode(false);
contentTV.setFocusable(false);
contentTV.setLongClickable(false);
WebSettings setting = contentTV.getSettings();
setting.setUserAgentString(context.getString(R.string.clientua) + BuildConfig.VERSION_CODE);
setting.setDefaultFontSize(PhoneConfiguration.getInstance()
.getWebSize());
setting.setJavaScriptEnabled(false);
contentTV.setWebViewClient(client);
contentTV.setTag(row.getLou());
contentTV.loadDataWithBaseURL(null, row.getFormated_html_data(),
"text/html", "utf-8", null);
}
代码示例来源:origin: apps4av/avare
mWebView.setLongClickable(false);
代码示例来源:origin: apps4av/avare
mWebView.setLongClickable(false);
代码示例来源:origin: ymback/NGA-CLIENT-VER-OPEN-SOURCE
contentTV.setFocusableInTouchMode(false);
contentTV.setFocusable(false);
contentTV.setLongClickable(false);
boolean showImage = PhoneConfiguration.getInstance().isDownImgNoWifi()
|| NetUtil.getInstance().isInWifi();
代码示例来源:origin: apps4av/avare
mWebView.setLongClickable(false);
代码示例来源:origin: stackoverflow.com
web.setLongClickable(false);
try{
web.loadUrl(Url.mainUrl
代码示例来源:origin: ymback/NGA-CLIENT-VER-OPEN-SOURCE
final WebView contentTV = (WebView) view.findViewById(R.id.votewebview);
contentTV.setBackgroundColor(0);
contentTV.setLongClickable(false);
contentTV.setOnLongClickListener(new View.OnLongClickListener() {
@Override
代码示例来源:origin: apps4av/avare
wv.setLongClickable(false);
内容来源于网络,如有侵权,请联系作者删除!