参考: 1. https://github.com/Victory-Over/SuperWeb 

            2. https://github.com/yangchong211/YCWebView

参考大神框架的使用:

1,SuperWeb 超级浏览器

基于腾讯X5内核

目前已有功能:

  • 1、文件浏览(支持pdf/ppt/doc/excel/txt)
  • 2、文件上传(JS)
  • 3、文件下载
  • 4、Android与JS交互
  • 5、自定义交互(进度条、下拉回弹)
  • 6、视频播放

添加依赖和配置

  • 根目录build.gradle文件添加如下配置:
allprojects {    repositories {       maven { url 'https://jitpack.io' }    }}
  • APP目录build.gradle文件添加如下配置:
dependencies {     implementation 'com.github.Victory-Over:SuperWeb:v1.0.2}
  • 申请权限:
                                    

 

2、YCWebView

导入依赖

implementation 'cn.yc:WebViewLib:1.1.6'

项目初始化

X5WebUtils.init(this);

使用

 

更多相关文章

  1. Android开发8――利用pull解析器读写XML文件
  2. Android 生成android的keystore文件
  3. 有关android中加载MP4,3gp等视频文件,无法播放问题的解决
  4. Android的文件监控系统不可靠
  5. Android Studio 使用API29无法向手机存储写文件问题
  6. Edittext在xml文件中设置android:focusable=“false”之后,edittex
  7. 【经验记录】Android上传文件到服务器
  8. Android studio查看SQLIte数据库文件
  9. [图文]为移植到Android平台上的Cocos2d-x项目添加xml布局文件

随机推荐

  1. Android之文件操作和JUnit
  2. android提供的Log类
  3. Android 通过wifi调试程序
  4. 开源一个友盟 for android 操作的封装包
  5. android SeekBar自定义样式滑动条的使用
  6. Android之短信接收
  7. Android(安卓)拨打电话 对方接听时震动功
  8. android 4.2 源码在64位Ubuntu编译
  9. android布局中容易混淆的几个属性
  10. Android学习一:Hello World