<? Xml version = "1.0" encoding = "UTF-8"?>
<LinearLayout xmlns: android = "http://schemas.android.com/apk/res/android"
Android: layout_width = "fill_parent"
Android: layout_height = "fill_parent"
Android: orientation = "vertical">
<TextView
Android: layout_width = "fill_parent"
Android: layout_height = "wrap_content"
Android: text = "@ string/hello"/>
// Progress bar with a large circle
<ProgressBar
Android: id = "@ + id/progressBar1"
Style = "? Android: attr/progressBarStyleLarge"
Android: layout_width = "wrap_content"
Android: layout_height = "wrap_content"/>
// Normal circular progress bar
<ProgressBar
Android: id = "@ + id/progressBar2"
Android: layout_width = "wrap_content"
Android: layout_height = "wrap_content"/>
// Small circular progress bar
<ProgressBar
Android: id = "@ + id/progressBar3"
Style = "? Android: attr/progressBarStyleSmall"
Android: layout_width = "wrap_content"
Android: layout_height = "wrap_content"
Android: indeterminate = "true"/>
// You can add the indeterminate attribute to the horizontal progress bar. Adding a circle does not work.
<ProgressBar www.2cto.com
Android: id = "@ + id/progressBar4"
Style = "? Android: attr/progressBarStyleHorizontal"
Android: layout_width = "wrap_content"
Android: layout_height = "wrap_content"
Android: indeterminate = "true"/>
// Progress of the horizontal progress bar
<ProgressBar
Android: id = "@ + id/progressBar4"
Style = "? Android: attr/progressBarStyleHorizontal"
Android: layout_width = "wrap_content"
Android: layout_height = "wrap_content"
Android: max = "1000"
Android: progress = "200"
Android: secondaryProgress = "500"/>
</LinearLayout>
By gongzibai