diff --git a/library/src/main/java/com/thefinestartist/finestwebview/FinestWebViewActivity.java b/library/src/main/java/com/thefinestartist/finestwebview/FinestWebViewActivity.java index f1a6d0e..1b75a74 100644 --- a/library/src/main/java/com/thefinestartist/finestwebview/FinestWebViewActivity.java +++ b/library/src/main/java/com/thefinestartist/finestwebview/FinestWebViewActivity.java @@ -646,6 +646,10 @@ protected void initializeViews() { ((ViewGroup) webView.getParent()).removeAllViews(); swipeRefreshLayout.addView(webView); swipeRefreshLayout.removeViewAt(1); + + // Compensate coordinatorLayout pushing swipeRefreshLayout below appBar + float toolbarHeight = getResources().getDimension(R.dimen.toolbarHeight); + swipeRefreshLayout.setPadding(0, 0, 0, (int) toolbarHeight); } } if (webViewDisplayZoomControls != null