Create a smooth undefined horizontal progress bar

I want to use a smooth indefinite horizontal progress bar like gmail or an FB app. I want to support api level 8+. I searched and see the library, but I want to write this code without using lib. I find some questions and answers about this, but I cannot understand and use this. I read this ( smoothly update the ProgressBar ), in response, say what is the increment and count? in the last answer, how can I use this class and methods? please explain how to use this class or method in the program? Thanks and sorry for my stupid question :)

+3
source share
1 answer

I wrote a blog post about this a few months ago.

You can find the whole implementation HERE

if you want to accurately reproduce the gmail progress bar, here is the source code

Hope this helps you.

+4
source

All Articles