com.youth.banner.Banner.startAutoPlay()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(121)

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

Banner.startAutoPlay介绍

暂无

代码示例

代码示例来源:origin: SunAlwaysOnline/Sukeda

@Override
  public void onResume() {
    super.onResume();
    if (banner != null) {
      banner.startAutoPlay();
    }
  }
}

代码示例来源:origin: SunAlwaysOnline/Sukeda

@Override
public void onResume() {
  super.onResume();
  if (banner != null) {
    //返回时,开启轮播
    banner.startAutoPlay();
  }
}

代码示例来源:origin: yaozs/YzsLib

@Override
protected void onStart() {
  super.onStart();
  //开始轮播
  banner.startAutoPlay();
}

代码示例来源:origin: jenly1314/WanAndroid

@Override
protected void onStart() {
  super.onStart();
  mBinding.banner.startAutoPlay();
}

代码示例来源:origin: BolexLiu/ApkBusBlog

@Override
protected void onStart() {
  super.onStart();
  //开始轮播
  banner.startAutoPlay();
}

代码示例来源:origin: gaolhjy/enjoyshop

@Override
public void onStart() {
  super.onStart();
  mBanner.startAutoPlay();
}

代码示例来源:origin: wzmyyj/ZYMK

@Override
public void onStart() {
  super.onStart();
  //开始轮播
  mBanner.startAutoPlay();
}

代码示例来源:origin: AdleyLong/RecyclerViewDemo

public void setBannerPlay(boolean b) {
    if (mBanner != null) {
      if (b) {
        mBanner.startAutoPlay();
      } else {
        mBanner.stopAutoPlay();
      }
    }
  }
}

代码示例来源:origin: Vegen/SmartCampus

@Override
public void onStart() {
  super.onStart();//开始轮播
  if (banner != null) banner.startAutoPlay();
}

代码示例来源:origin: Vegen/SmartCampus

@Override
protected void onVisible() {
  super.onVisible();
  if (banner != null) banner.startAutoPlay();
}

代码示例来源:origin: laotan7237/EasyReader

private void initBanner(final List<DailyListBean.TopStoriesBean> topStoriesList) {
  banner.startAutoPlay();
  banner.setDelayTime(3000);
  List<String> imageList = new ArrayList<>();
  for (DailyListBean.TopStoriesBean topStoriesBean : topStoriesList) {
    imageList.add(topStoriesBean.getImage());
  }
  banner.setImages(imageList).setImageLoader(new GlideImageLoader()).start();
  banner.setOnBannerListener(new OnBannerListener() {
    @Override
    public void OnBannerClick(int position) {
      int id = topStoriesList.get(position).getId();
      startZhiHuDetailActivity(id, banner);
    }
  });
}

相关文章