There is an Activity , in it a fragment, in this fragment there is a WebView in the whole fragment, and also a FrameLayout , in which the ProgressBar over the WebView .
In TheFragment.OnCreateView inflates the layout, then WebView is configured, WebView can also happen - work with the base there, then loadUrl is called loadUrl , and then the progressbar is hidden in WebViewClient.onPageFinished .
And where is the progress bar shown in front of all this? The fact of the matter is that it was originally VISIBLE . However, when opening a fragment, it takes about half a second before it appears. How can you speed up?
Does the fact that the WebView in the tree is located in front of the ProgressBar and its creation takes this time?
Do I onCreateView understand that onCreateView is called before any rendering, if so, is it possible to call it already in it so that the progress onCreateView will at least appear (albeit in a frozen state).