com.squareup.picasso.Picasso.resumeTag()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(2.8k)|赞(0)|评价(0)|浏览(92)

本文整理了Java中com.squareup.picasso.Picasso.resumeTag()方法的一些代码示例,展示了Picasso.resumeTag()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Picasso.resumeTag()方法的具体详情如下:
包路径:com.squareup.picasso.Picasso
类名称:Picasso
方法名:resumeTag

Picasso.resumeTag介绍

暂无

代码示例

代码示例来源:origin: lovetuzitong/MultiImageSelector

@Override
public void onScrollStateChanged(AbsListView view, int scrollState) {
  if (scrollState == SCROLL_STATE_FLING) {
    Picasso.with(view.getContext()).pauseTag(TAG);
  } else {
    Picasso.with(view.getContext()).resumeTag(TAG);
  }
}

代码示例来源:origin: tianshaojie/AndroidFine

@Override
public void onResume() {
  super.onResume();
  Picasso.with(context).resumeTag(context);
}

代码示例来源:origin: tianshaojie/AndroidFine

@Override
public void onResume() {
  super.onResume();
  Picasso.with(context).resumeTag(context);
}

代码示例来源:origin: tianshaojie/AndroidFine

@Override
public void onScrollStateChanged(AbsListView view, int scrollState) {
  if (scrollState == AbsListView.OnScrollListener.SCROLL_STATE_FLING) {
    Picasso.with(context).pauseTag(context);
  } else {
    Picasso.with(context).resumeTag(context);
  }
}

代码示例来源:origin: captain-miao/AndroidAgeraTutorial

@Override
  public void run() {
    sPicasso.resumeTag(TAG);
  }
};

代码示例来源:origin: layerhq/Atlas-Android

@Override
public void onScrollStateChanged(int newState) {
  switch (newState) {
    case RecyclerView.SCROLL_STATE_DRAGGING:
      mPicasso.pauseTag(PICASSO_TAG);
      break;
    case RecyclerView.SCROLL_STATE_IDLE:
    case RecyclerView.SCROLL_STATE_SETTLING:
      mPicasso.resumeTag(PICASSO_TAG);
      break;
  }
}

代码示例来源:origin: layerhq/Atlas-Android

@Override
public void onScrollStateChanged(int newState) {
  switch (newState) {
    case RecyclerView.SCROLL_STATE_DRAGGING:
      mPicasso.pauseTag(PICASSO_TAG);
      break;
    case RecyclerView.SCROLL_STATE_IDLE:
    case RecyclerView.SCROLL_STATE_SETTLING:
      mPicasso.resumeTag(PICASSO_TAG);
      break;
  }
}

代码示例来源:origin: layerhq/Atlas-Android

@Override
public void onScrollStateChanged(int newState) {
  switch (newState) {
    case RecyclerView.SCROLL_STATE_DRAGGING:
      mPicasso.pauseTag(PICASSO_TAG);
      break;
    case RecyclerView.SCROLL_STATE_IDLE:
    case RecyclerView.SCROLL_STATE_SETTLING:
      mPicasso.resumeTag(PICASSO_TAG);
      break;
  }
}

代码示例来源:origin: huangweicai/OkLibDemo

@Override
public void onScrollStateChanged(AbsListView view, int scrollState) {
  if (scrollState == SCROLL_STATE_FLING) {
    Picasso.with(view.getContext()).pauseTag(TAG);
  } else {
    Picasso.with(view.getContext()).resumeTag(TAG);
  }
}

代码示例来源:origin: captain-miao/AndroidAgeraTutorial

@Override
public void onScrollStateChanged(RecyclerView recyclerView, int scrollState) {
  if(scrollState == RecyclerView.SCROLL_STATE_IDLE) {
    recyclerView.removeCallbacks(mSettlingResumeRunnable);
    sPicasso.resumeTag(TAG);
  } else if(scrollState == RecyclerView.SCROLL_STATE_SETTLING) {
    mSettlingResumeRunnable = new Runnable() {
      @Override
      public void run() {
        sPicasso.resumeTag(TAG);
      }
    };
    recyclerView.postDelayed(mSettlingResumeRunnable, SETTLING_DELAY);
  }
  //else {
  //    sPicasso.pauseTag(TAG);
  //}
}

相关文章