Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to achieve the smoother indeterminate progressbar used in Gmail's Android app

I see a difference between the normal Indeterminate ProgressBar of Android and Gmail's Indeterminate ProgressBar

any ideas about how did they achieve such smooth indeterminate Progressbar?

Gmail uses very smooth progressbar

like image 740
HimalayanCoder Avatar asked Oct 27 '13 14:10

HimalayanCoder


People also ask

What is indeterminate progressbar?

Indeterminate ProgressBars are a useful tool for communicating to our users that an operation is in progress when we cannot predict how long it is likely to take.

What is indeterminate Android?

From wiktionary: Indeterminate: Not accurately determined or determinable. It basically just means you're unsure how long the action will take so you cannot say for example something is 50% done.


1 Answers

Hey I wrote a post/lib about that.

Blog post: http://antoine-merle.com/blog/2013/11/12/make-your-progressbar-more-smooth/

Library: https://github.com/castorflex/SmoothProgressBar

Sample app: https://play.google.com/store/apps/details?id=fr.castorflex.android.smoothprogressbar.sample

Go check it out ;)

EDIT: if you want to reproduce exactly the gmail's progressbar, here is the source code

like image 97
AMerle Avatar answered Sep 29 '22 12:09

AMerle