Skip to content

Commit

Permalink
完善
Browse files Browse the repository at this point in the history
  • Loading branch information
like5188 committed Mar 8, 2022
1 parent efb3973 commit 8619ea6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class SimpleWebViewActivity : BaseWebViewActivity() {
fun start(
context: Context,
url: String?,
errorViewResId: Int = R.layout.webview_error_view,
errorViewResId: Int = R.layout.view_error_view,
progressBarHeight: Float = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 3f, Resources.getSystem().displayMetrics),
progressBarBgColorResId: Int = R.color.colorPrimary,
progressBarProgressColorResId: Int = R.color.colorPrimaryDark
Expand Down
2 changes: 1 addition & 1 deletion webview/src/main/java/com/like/webview/WebViewFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ class WebViewFragmentConfig {
* 错误页面资源 id
*/
@LayoutRes
var errorViewResId: Int = R.layout.webview_error_view
var errorViewResId: Int = R.layout.view_error_view

/**
* 进度条高度,设置为 0 即隐藏进度条。
Expand Down

0 comments on commit 8619ea6

Please sign in to comment.