In android, ProgressBar is a user interface control which is used to indicate the progress of an operation. For example, downloading a file, uploading a file.By default the ProgressBar will be displayed as a spinning wheel, in case if we want to show it like horizontal bar then we need to change the style property to horizontal like style="?android:attr/progressBarStyleHorizontal".Create Android ProgressBar in XML Layout FileIn android, we can create ProgressBar in XML layout file using ProgressBar element with different attributes like as shown below:
Now,create a new xml progress_bar.xml in res/drawable.