https://github.com/shimohq/bisonview
WebView for Android
https://github.com/shimohq/bisonview
Last synced: 7 months ago
JSON representation
WebView for Android
- Host: GitHub
- URL: https://github.com/shimohq/bisonview
- Owner: shimohq
- Created: 2022-02-14T09:45:05.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-14T10:14:31.000Z (over 1 year ago)
- Last Synced: 2025-01-11T20:13:16.744Z (9 months ago)
- Language: C++
- Size: 3.36 MB
- Stars: 3
- Watchers: 6
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## BisonView - Android WebView
### 用法
添加依赖
```
dependencies {
implementation 'im.shimo:bisonview:xxx'
}
```排除Assets中的`.dat`,`.bin`,`.pak`格式文件,不压缩
```android {
...
...aaptOptions {
noCompress ".dat", ".bin" , ".pak" // 表示不让aapt压缩的文件后缀
}
...
}```
在layout xml 中添加
```
......
```
然后
```
BisonView bisonView = findViewById(R.id.bison_view);
bisonView.loadUrl("https://xxx.xx.xx");
```
BisonView的使用方式大部分和系统的WebView一样,更多信息请查看[接入指南](./docs/guide.md)或[API差异](./docs/ApiDiff.md)。
如果您需要自己编译BisonView请查看[编译BisonView](./docs/build.md)