# To enable ProGuard in your project, edit project.properties
# to define the proguard.config property as described in that file.
#
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in ${sdk.dir}/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the ProGuard
# include property in project.properties.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Add any project specific keep options here:
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
js交互,等 findViewById(R.id.web_view_invoke_js).setOnClickListener(new OnClickListener() { public void onClick(View v) { /*调用JS方法,并传递参数*/ mWebView.loadUrl("[removed]invokedByJava('java_data')"); } }); /*webview相关设置*/ mWebView = (WebView)findViewById(R.id.web_view); mWebView.setScrollBarStyle(View.SCROLLBARS_INSIDE_OVERLAY); mWebView.getSettings().setBuiltInZoomControls(true); mWebView.getSettings().setJavaScriptEnabled(true);
资源推荐
资源详情
资源评论
收起资源包目录
webviewDemo.zip (45个子文件)
webviewDemo
.project 847B
project.properties 563B
src
com
example
webviewdemo
demoPropety.java 349B
WebViewDemo.java 7KB
AndroidManifest.xml 1KB
res
drawable-ldpi
ic_launcher.png 1KB
drawable-hdpi
ic_launcher.png 3KB
ic_action_search.png 3KB
values-v11
styles.xml 94B
menu
activity_main.xml 240B
drawable-mdpi
ic_launcher.png 2KB
ic_action_search.png 3KB
layout
pref_page.xml 1KB
webviewdemo.xml 1KB
drawable-xhdpi
ic_launcher.png 4KB
ic_action_search.png 3KB
values
strings.xml 247B
styles.xml 89B
values-v14
styles.xml 108B
.settings
org.eclipse.jdt.core.prefs 177B
assets
demo.html 741B
gen
com
example
webviewdemo
BuildConfig.java 165B
R.java 2KB
libs
android-support-v4.jar 341KB
.classpath 364B
proguard-project.txt 781B
ic_launcher-web.png 36KB
bin
classes
com
example
webviewdemo
R$layout.class 449B
R$style.class 410B
WebViewDemo$1.class 1006B
BuildConfig.class 355B
R$drawable.class 462B
R$attr.class 355B
WebViewDemo$2.class 2KB
WebViewDemo$JsToJava.class 920B
R$id.class 668B
WebViewDemo$3$1.class 1KB
WebViewDemo$3.class 2KB
WebViewDemo$4.class 2KB
R.class 670B
R$string.class 528B
R$menu.class 412B
WebViewDemo.class 4KB
demoPropety.class 553B
AndroidManifest.xml 1KB
res
共 45 条
- 1
资源评论
逻辑艺术家
- 粉丝: 15
- 资源: 46
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功