Android material loading progress bar making code

Recently, I saw the loading progress of several apps in this style. I felt it was pretty good. I found some information on the Internet and trained myself:

Main open source framework: / viewpagerindicator_ Library is mainly the tab page switching indicator / PTR lib progress bar download address: https://github.com/liaohuqiu/android-Ultra-Pull-To-Refresh

1、 Method of use

Layout file

Declare the control in Java code and set relevant parameters

Manual refresh: mptrframelayout. Autorefresh(); End refresh: mptrframelayout. Refreshcomplete(); mPtrFrameLayout.setPinContent(true); Here, you can set true or false according to your preferences. True means that the content in the layout will be fixed when refreshing, and false means that the progress bar will squeeze the layout content when refreshing. Listen to whether the listview slides to the bottom. If it reaches the bottom, more progress bars will be loaded at the bottom.

The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support programming tips.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>