//导入类
android.webkit.WebView
java.io.File
//类模块
ff hqimg(string path){
gj.ts(path)
}
//浏览器控件长按事件代码
java {
// 控件对象
WebView wv =st.llq(vw,R.id.llq1).st;
WebView.HitTestResult htr = wv.getHitTestResult();
int type = htr.getType();
final int IMAGE_TYPE = WebView.HitTestResult.IMAGE_TYPE;
final int SRC_IMAGE_ANCHOR_TYPE = WebView.HitTestResult.SRC_IMAGE_ANCHOR_TYPE;
if (type == IMAGE_TYPE || type == SRC_IMAGE_ANCHOR_TYPE) {
String imageUrl = htr.getExtra();
hqimg(imageUrl);
}
}
fh fou
暂无评论