Android7.0中文API -- ProgressBar

来源:互联网 发布:淘宝拍图技巧 编辑:程序博客网 时间:2024/06/05 07:18

完整内容,请参考:http://www.zhdoc.net/android/reference/android/widget/ProgressBar.html

ProgressBar

public class ProgressBar
extends View

java.lang.Object   ↳android.view.View    ↳android.widget.ProgressBar
已知的直接子类
已知的间接子类


Visual indicator of progress in some operation. Displays a bar to the user representing how far the operation has progressed; the application can change the amount of progress (modifying the length of the bar) as it moves forward. There is also a secondary progress displayable on a progress bar which is useful for displaying intermediate progress, such as the buffer level during a streaming playback progress bar.
在某些操作中,显示一个进度条的指示器。向用户显示一个表示操作已经完成的进度的条;应用程序可以改变进度(修改条的长度),使其向前移动。在进度条上也有一个次级进度显示,它对于显示中间进度很有用,例如在流播放进度条中缓冲了多少。

A progress bar can also be made indeterminate. In indeterminate mode, the progress bar shows a cyclic animation without an indication of progress. This mode is used by applications when the length of the task is unknown. The indeterminate progress bar can be either a spinning wheel or a horizontal bar.
进度条也可以不确定。在不确定模式下,进度条显示为一个环形的动画,并且没有进度指示器。当不知道任务的长度时,应用程序将使用该模式。不确定的进度条,可以是一个圆环或一个水平条。

The following code example shows how a progress bar can be used from a worker thread to update the user interface to notify the user of progress:
下面的代码示例展示了如何从工作线程中使用进度条来更新用户界面,以通知用户进度:


完整内容,请参考:http://www.zhdoc.net/android/reference/android/widget/ProgressBar.html

原创粉丝点击