Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android loading progress bar with custom image and progress indicator

Tags:

Apologies if this seem trivial.

I have been working on my first android app and would like advise on best way to implement a loading/splash screen attached.

My designer came up with is loading/splash screen and I am not sure how to implement this.

  1. Do I ask designer to create a .gif image I can just play or
  2. Do I code this in app in such as way that, the progress bar and bike moves from left to right and on completion of a task (remote async task), I manually push to 100% and the image to far right indicating completion.

Please note that the bike starts from left and continues to the right with progress indicator and %.

Is option 2 even possible and if yes, could you please point me to any resource I can use as a guide.

loading startup image

Thanks

like image 508
Babajide Prince Avatar asked Jul 01 '16 13:07

Babajide Prince


People also ask

How do I change the progress bar icon on Android?

Go to the activity_main. xml file and refer to the following code. Open the activity_main. xml file and in the ProgressBar tag and set the drawable in indeterminateDrawable attribute.

What is ProgressBar in Android?

Android ProgressBar is a graphical view indicator that shows some progress. Android progress bar displays a bar representing the completing of the task. Progress bar in android is useful since it gives the user an idea of time to finish its task.

What are the different types of progress bars?

There are 2 types of progress bars: determinate and indeterminate. The former is used when the amount of information that needs to be loaded is detectable. The latter is used when the system is unsure how much needs to be loaded or how long it will take.

What is SeekBar?

In Android, SeekBar is an extension of ProgressBar that adds a draggable thumb, a user can touch the thumb and drag left or right to set the value for current progress. SeekBar is one of the very useful user interface element in Android that allows the selection of integer values using a natural user interface.


1 Answers

Generally a ProgressBar is used for purposes like this but I think, you should use a Seekbar cuz of the biker you've in your image. You can achieve this by customising it using different drawables.

Here are some helpful tutorials to help you do that :

  • Custom seekbar example
  • Create custom seekbar in android

Or

You can obviously use a custom ProgressBar as described here :

  • Android progress bars
  • Customize a progress bar in android
like image 91
Ashish Ranjan Avatar answered Sep 28 '22 01:09

Ashish Ranjan