You have to customize the control, define the drawing rules and draw it yourself. It's quite troublesome. You can look for the following open source libraries to see if there are similar wheels. I remember that NGA’s pull-down refresh is similar to this style. You can go to github to find it.
This effect is actually very simple. For example, the loading on the open source Aisen-SinaWeibo has this effect. The specific idea of this effect is a LinearLayout (orientation==vertical) and then a scroll bar at the top. Below is the webView. The webView monitors the loading. There is no need to emphasize the code. The progress bar above is an open source control. You can find it on Github.
Customize a ProgressBar separately (or use a style). There are corresponding methods in WebChromeClient to obtain the web page loading progress, and use this to update the bar... Of course, it can also be directly integrated into a custom WebView.. ....Well, that’s what I thought
You have to customize the control, define the drawing rules and draw it yourself. It's quite troublesome. You can look for the following open source libraries to see if there are similar wheels. I remember that NGA’s pull-down refresh is similar to this style. You can go to github to find it.
This effect is actually very simple. For example, the loading on the open source Aisen-SinaWeibo has this effect. The specific idea of this effect is a LinearLayout (orientation==vertical) and then a scroll bar at the top. Below is the webView. The webView monitors the loading. There is no need to emphasize the code. The progress bar above is an open source control. You can find it on Github.
Customize a ProgressBar separately (or use a style). There are corresponding methods in WebChromeClient to obtain the web page loading progress, and use this to update the bar... Of course, it can also be directly integrated into a custom WebView.. ....Well, that’s what I thought
! The old version of SwipeLayout has this effect