In day to day we use many applications where sometimes we may download few files for which a Progress Bar is to be displayed showing the status of the file.Not only file downloading but in several other process which run in background displays a message in terms of a progress bar.


Generally in application startup we see a loading… kind of status which will be loading based on percentage basis.


In this tutorial i am showing you a horizontal progress bar which will look like




Creating :

We need to add a button to start downloading process.

Then we need to initialize progress bar


Here in next step we will make a step by step increasing of progress bar


Full Code :



Creating activity_main.xml File :

Here is the design layout file where we will add a button


Output :

progressbar progressbar2 progressbar3 progressbar4


























Show Buttons
Hide Buttons
Read previous post:
Android Fetch Current Latitude and Longitude Values