android:progress - How to Set the Default Progress Value of a ProgressBar

public static final int progress was added in API level 1
Defines the default progress value, between 0 and max.
Must be an integer value, such as "50".

1. Add a ProgressBar, in XML

2. Add the below line between the ProgressBar tags. This will set the progress on the ProgressBar to 20.

<ProgressBar
    android:progress="20"
/>

3. Compile and run!

Resources: