---
title: "ProgressBar 样式"
author: "fonter"
date: "2011-05-01T23:06:52Z"
tags: []
categories: ["移动开发"]
slug: "progressbar"
draft: false
lastmod: "2011-05-01T23:06:52Z"
id: 1025964
url: "https://fonter.iteye.com/blog/1025964"
---

The four attributes that you mention can be applied to a `ProgressBar`'s style like so:

```
style="?android:attr/progressBarStyleHorizontal" 
```

The style constant `android:progressBarStyleHorizontal` is your typical incremental progress bar:

![alt text](http://i.imgur.com/ytaMP.png)

While the other three are varying sizes of the same circular progress bar:

```
style="?android:attr/progressBarStyleSmall" 
```

![alt text](http://i.imgur.com/YlCKM.png)

```
style="?android:attr/progressBarStyle" 
```

![alt text](http://i.imgur.com/RlAR1.png)

```
style="?android:attr/progressBarStyleLarge" 
```

![alt text](http://i.imgur.com/Xhylg.png)

**Update:**