BannerLayoutSimple

Introduction: 支持图片无限轮播的 BannerLayout,支持自定义小圆点位置以及显示位置等等,反正支持的挺多的,源码也有注释
More: Author   ReportBugs   
Tags:
banner-viewpager-无限轮播-图片轮播-自定义-

core

implementation 'com.ydevelop:bannerlayout:1.1.9'

page

implementation 'com.ydevelop:bannerlayout:1.1.9'
implementation 'com.ydevelop:bannerlayout.page:0.0.1'

shadow

implementation 'com.ydevelop:bannerlayout:1.1.9'
implementation 'com.ydevelop:bannerlayout.shadow:0.0.1'

transformer

implementation 'com.ydevelop:bannerlayout:1.1.9'
implementation 'com.ydevelop:bannerlayout.transformer:0.0.1'

api

banner.bannerStatus()

banner.removeCallbacksAndMessages()

banner.transformer()

banner.offscreenPageLimit()

banner.viewPagerTouchMode()

banner.bannerDuration()

banner.guide()

banner.delayTime()

banner.play()

banner.resource()

banner.playBanner()

banner.stopBanner()

ImageLoaderManager

class ImageLoaderSimpleManager : ImageLoaderManager<NetBannerInfo> {

    override fun display(container: ViewGroup, model: NetBannerInfo): View {
        val imageView = ImageView(container.context)
        val imageLoader = ImageLoader.getInstance()
        imageLoader.displayImage(model.bannerUrl, imageView)
        return imageView
    }
}

banner.imageLoaderManager{ ImageLoaderSimpleManager() }

banner.setImageLoaderManager()

Vertical scrolling

implementation 'com.ydevelop:bannerlayout:1.1.9'
implementation 'com.ydevelop:bannerlayout.transformer:0.0.1'

banner.verticalTransformer()

click

banner.addOnItemClickListener()

pageChanged

banner.doOnpageScrolled()

banner.doOnPageSelected()

banner.doOnPageScrollStateChanged()
Apps
About Me
Google+: Trinea trinea
GitHub: Trinea