应用内展示word ,pdf, excel,ppt等文件
在线展示
word ppt在线展示:
https://view.officeapps.live.com/op/view.aspx?src=url
mWebView.getSettings().setJavaScriptEnabled(true);
mWebView.getSettings().setLayoutAlgorithm(WebSettings.LayoutAlgorithm.SINGLE_COLUMN);
mWebView.getSettings().setLoadWithOverviewMode(true);pdf 在线展示
compile ‘com.lidong.pdf:android_pdf:1.0.1’
本地展示(腾讯浏览服务Tbs)
https://x5.tencent.com/tbs/guide/sdkInit.html
参考: