本文整理匯總了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);
}