Currently:
We a ConstraintLayout with a webview and a image view. The image view is directly laying over the webview, in order to show a placeholder image, until the webview has finished loading:
As soon as the webview has finished loading, the visibility of webview_mask is set to GONE.
private WebViewClient createWebViewClient() {
return new WebViewClient() {
public void onPageFinished(WebView view, String url) {
mWebViewMask.setVisibility(View.GONE);
}
};
}
Expected:
With constraintLayout 1.1.3 this is working without any issues. With 2.0.0-beta3 setting the visibility of the mWebViewMask to GONE, also sets height and weight of the webview underneath to 0.
Remark: By setting the visibility to INVISIBLE instead of GONE, the webview below is visible again. But this should also work with GONE, as the webview is still there.
Currently: We a ConstraintLayout with a webview and a image view. The image view is directly laying over the webview, in order to show a placeholder image, until the webview has finished loading:
As soon as the webview has finished loading, the visibility of webview_mask is set to GONE.
Expected: With constraintLayout 1.1.3 this is working without any issues. With 2.0.0-beta3 setting the visibility of the mWebViewMask to GONE, also sets height and weight of the webview underneath to 0. Remark: By setting the visibility to INVISIBLE instead of GONE, the webview below is visible again. But this should also work with GONE, as the webview is still there.