You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
Onlinedispatcher
changed the title
2.0.0-beta3
2.0.0-beta3 Visibility of View to GONE also hides WebView underneath
Nov 18, 2019
Onlinedispatcher
changed the title
2.0.0-beta3 Visibility of View to GONE also hides WebView underneath
2.0.0-beta3 Visibility of view to GONE also hides WebView underneath
Nov 18, 2019
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
The text was updated successfully, but these errors were encountered: