Skip to content

Commit 83d87e6

Browse files
committed
update readme
1 parent 6bc5faa commit 83d87e6

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

README.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ WebView 可谓是每个应用必备的一个控件了 ,但是它不是一个
6565
#### 为什么说它简洁易用吗 ? 下面京东效果图 , 只需一句话 !
6666

6767
```
68-
mAgentWeb = AgentWeb.with(this)//传入Activity
68+
mAgentWeb = AgentWeb.with(this)//传入Activity or Fragment
6969
.setAgentWebParent(mLinearLayout, new LinearLayout.LayoutParams(-1, -1))//传入AgentWeb 的父控件 ,如果父控件为 RelativeLayout , 那么第二参数需要传入 RelativeLayout.LayoutParams ,第一个参数和第二个参数应该对应。
7070
.useDefaultIndicator()// 使用默认进度条
7171
.defaultProgressBarColor() // 使用默认进度条颜色
@@ -236,10 +236,6 @@ protected PermissionInterceptor mPermissionInterceptor = new PermissionIntercept
236236
SUPPORT_LIB_VERSION=25.2.0(该值会更新)
237237
```
238238

239-
## 注意事项
240-
* 支付宝使用需要引入支付宝SDK ,并在项目中依赖 , 微信支付不需要做任何操作。
241-
* 注意动态权限申请 。
242-
* `AgentWeb` 内部使用了 AlertDialog 需要依赖 `AppCompat` 主题 。
243239

244240
## 混淆
245241
如果你的项目需要加入混淆 , 请加入如下配置
@@ -257,6 +253,16 @@ Java 注入类不要混淆 , 例如 sample 里面的 AndroidInterface 类 ,
257253
-keepclassmembers class com.just.library.agentweb.AndroidInterface{ *; }
258254
```
259255

256+
## 注意事项
257+
* 支付宝使用需要引入支付宝SDK ,并在项目中依赖 , 微信支付不需要做任何操作。
258+
* `AgentWeb` 内部使用了 AlertDialog 需要依赖 `AppCompat` 主题 。
259+
* `setAgentWebParent` 不支持 `ConstraintLayout`
260+
261+
262+
## 文档帮助
263+
* [Wiki](https://github.com/Justson/AgentWeb/wiki)(不全)
264+
* `Sample`(推荐,详细)
265+
260266
## 更新日志
261267
* v_2.0.0 加入动态权限 ,拍照等功能 。
262268
* v_1.2.6 修复Android 4.4以下布局错乱 。
@@ -270,8 +276,8 @@ Java 注入类不要混淆 , 例如 sample 里面的 AndroidInterface 类 ,
270276

271277

272278
## 下个版本预告
273-
* 加入默认的错误页
274-
* 支持自定义错误页
279+
* 加入默认的错误页
280+
* 支持自定义错误页
275281

276282
## 致谢
277283
* [SafeWebView](https://github.com/seven456/SafeWebView)
@@ -295,7 +301,7 @@ Java 注入类不要混淆 , 例如 sample 里面的 AndroidInterface 类 ,
295301
[qq0group]: http://qm.qq.com/cgi-bin/qm/qr?k=KpyfInzI2nr-Lh4StG0oh68GpbcD0vMG
296302

297303

298-
### 最后如果该库对你有帮助不妨对右上角点点 Star 对我支持 , 感谢万分 ! 当然我更喜欢你 Fork PR 成为项目贡献者 . [AgentWeb](https://github.com/Justson/AgentWeb)
304+
### 最后如果该库对你有帮助不妨对右上角点点 Star 对我支持 , 感谢万分 ! 当然我更喜欢你 Fork PR 成为项目贡献者 [AgentWeb](https://github.com/Justson/AgentWeb)
299305

300306

301307
## License

0 commit comments

Comments
 (0)