android - webview 自定义加载进度条
伊谢尔伦
伊谢尔伦 2017-04-17 17:39:58
0
4
647


上图是sf自己的进度条,如果要实现像如图的进度条,求给个思路,thx

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(4)
黄舟

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.

Peter_Zhu

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

Ty80

! The old version of SwipeLayout has this effect

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template