當前位置: 首頁>>代碼示例>>Java>>正文


Java RingProgressBar類代碼示例

本文整理匯總了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
        }
      });
    }
  }
}
 
開發者ID:weiwenqiang,項目名稱:GitHub,代碼行數:27,代碼來源:MainActivity.java

示例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();
}
 
開發者ID:weiwenqiang,項目名稱:GitHub,代碼行數:27,代碼來源:MainActivity.java

示例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);
}
 
開發者ID:Ericsongyl,項目名稱:LargeImage,代碼行數:7,代碼來源:NetworkDemoActivity.java


注:本文中的io.netopen.hotbitmapgg.library.view.RingProgressBar類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。