How to Add a ProgressBar, in XML

Progressbar was added in API Level 1
Visual indicator of progress in some operation.
By default, the progress bar is a spinning wheel (an indeterminate indicator)

Default ProgressBar
1. In the main.xml file, add the below code after your layout tags.

<ProgressBar
             android:layout_width="fill_parent"
             android:layout_height="wrap_content"
/>

2. Compile and run!

Next Recommended Article: android:id - How to Name a ProgressBar, in XML

Resources:
http://developer.android.com/reference/android/widget/ProgressBar.html