当前位置: 首页>>代码示例>>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;未经允许,请勿转载。