Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android- How to implement Horizontal Step Progress Bar [closed]

I want to implement horizontal progress bar with steps like shown in following img.

Horizontal Step Progress bar

I could not find such native component in Android. Can anyone guide me on how to do it ?

like image 661
Rohit Avatar asked Jan 29 '13 11:01

Rohit


People also ask

How do I make my progress bar horizontal android?

In Android, by default a progress bar will be displayed as a spinning wheel but If we want it to be displayed as a horizontal bar then we need to use style attribute as horizontal. It mainly use the “android. widget. ProgressBar” class.

How do you set progress bar visibility?

By the time the system gets control to refresh the display, you've already set it back to invisible. To fix this, move your processing code to a separate thread or AsyncTask. Then you can set the progress bar to visible, start the task, and have it turn itself invisible once it's done.

How do I stop progress bar?

You want to stop the progressDialog or change its UI not to be circular? You can set your progressbar's visibility to invisible or gone through progressbar. setVisibility(View. INVISIBLE); or progressBar.

What is indeterminate progress bar android?

Indeterminate mode is the default for progress bar and shows a cyclic animation without a specific amount of progress indicated. The following example shows an indeterminate progress bar: <ProgressBar android:id="@+id/indeterminateBar" android:layout_width="wrap_content" android:layout_height="wrap_content" />


2 Answers

I found a Vertical Steper that follows Google Material Design guidelines:

enter image description here

And also another well documented library Here

enter image description here

I hope it helps.

like image 198
Milad Faridnia Avatar answered Sep 18 '22 20:09

Milad Faridnia


EDIT: A repo which seems to currently be well supported and used (Sep 2016) https://github.com/baoyachi/StepView

StepView

Old Answer:

This answer is late to the party, but so far the best I've found is this repo from Anton46: https://github.com/anton46/Android-StepsView It's quite simple to setup too.

Heres an example:

enter image description here

like image 36
Alan Avatar answered Sep 22 '22 20:09

Alan