Reputation: 169
I want use smooth indeterminate horizontal progress bar like gmail or FB app. I want support api level 8+. I searched and i see a library but i want write this code not use lib. I find some question and answer about this but i cant understand and use this. I read this (Make a ProgressBar update smoothly), in accept answer what is incrementor and count? in last answer, how can i use this class and methods? please explain about use this class or method in program? Thanks and sorry for my stupid question :)
Upvotes: 4
Views: 5714
Reputation: 2420
I believe there is a View to do that from google (LinearProgressIndicator). you can custom colors and height. I explained it in this post :
https://stackoverflow.com/a/68505259/2719243
Upvotes: 0
Reputation: 4354
I wrote a Blog Post about this a few months ago.
You can find the whole implementation HERE
if you want to reproduce exactly the gmail's progressbar, here is the source code
Hope this will help you.
Upvotes: 5