本文整理汇总了Java中io.netopen.hotbitmapgg.library.view.RingProgressBar类的典型用法代码示例。如果您正苦于以下问题:Java RingProgressBar类的具体用法?Java RingProgressBar怎么用?Java RingProgressBar使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RingProgressBar类属于io.netopen.hotbitmapgg.library.view包,在下文中一共展示了RingProgressBar类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: handleMessage
import io.netopen.hotbitmapgg.library.view.RingProgressBar; //导入依赖的package包/类
@Override
public void handleMessage(Message msg) {
if (msg.what == 0) {
if (progress < 100) {
progress++;
mRingProgressBar1.setProgress(progress);
mRingProgressBar2.setProgress(progress);
mRingProgressBar1.setOnProgressListener(new RingProgressBar.OnProgressListener() {
@Override
public void progressToComplete() {
// Here after the completion of the processing
}
});
mRingProgressBar2.setOnProgressListener(new RingProgressBar.OnProgressListener() {
@Override
public void progressToComplete() {
// Here after the completion of the processing
}
});
}
}
}
示例2: onCreate
import io.netopen.hotbitmapgg.library.view.RingProgressBar; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
mRingProgressBar1 = (RingProgressBar) findViewById(R.id.progress_bar_1);
mRingProgressBar2 = (RingProgressBar) findViewById(R.id.progress_bar_2);
new Thread(new Runnable() {
@Override
public void run() {
for (int i = 0; i < 100; i++) {
try {
Thread.sleep(100);
mHandler.sendEmptyMessage(0);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}
}).start();
}
示例3: initView
import io.netopen.hotbitmapgg.library.view.RingProgressBar; //导入依赖的package包/类
private void initView() {
ivBack = (ImageView) findViewById(R.id.iv_back);
largeImageView = (LargeImageView) findViewById(R.id.networkDemo_photoView);
ringProgressBar = (RingProgressBar) findViewById(R.id.networkDemo_ringProgressBar);
clearButton = findViewById(R.id.tv_clear_cache);
}