This example introduces several different styles in the ProgressBar "indeterminate" mode. In progressbar_2.xml, add an "indeterminate" mode using a horizontal scroll bar.
<LinearLayout xmlns: android = "http://schemas.android.com/apk/res/android"
Android: orientation = "vertical"
Android: layout_width = "match_parent"
Android: layout_height = "wrap_content">
<ProgressBar android: id = "@ + android: id/progress_large"
Style = "? Android: attr/progressBarStyleLarge"
Android: layout_width = "wrap_content"
Android: layout_height = "wrap_content"/>
<ProgressBar android: id = "@ + android: id/progress"
Android: layout_width = "wrap_content"
Android: layout_height = "wrap_content"/>
<ProgressBar android: id = "@ + android: id/progress_small"
Style = "? Android: attr/progressBarStyleSmall"
Android: layout_width = "wrap_content"
Android: layout_height = "wrap_content"/>
<ProgressBar android: id = "@ + android: id/progress_small_title"
Style = "? Android: attr/progressBarStyleSmallTitle"
Android: layout_width = "wrap_content"
Android: layout_height = "wrap_content"/>
<ProgressBar
Android: indeterminate = "true"
Style = "? Android: attr/progressBarStyleHorizontal"
Android: layout_width = "wrap_content"
Android: layout_height = "wrap_content"/>
</LinearLayout>