BannerLayout
Support unlimited picture rotation BannerLayout, the minimum implementation of the code banner
Install / Use
/learn @7449/BannerLayoutREADME
BannerLayout
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
implementation 'com.github.7449.BannerLayout:banner:release.version'
implementation 'com.github.7449.BannerLayout:banner-page:release.version'
implementation 'com.github.7449.BannerLayout:banner-shadow:release.version'
implementation 'com.github.7449.BannerLayout:banner-transformer:release.version'
api
banner.resource(items,boolean)
banner.start()
banner.stop()
banner.release()
banner.delayTime(Long)
banner.touchMode(boolean)
banner.duration(Int)
banner.setTransformer(PageTransformer)
banner.getItem(position)
banner.itemCount
banner.checkViewPager
banner.setOnBannerImageLoader()
banner.addOnItemClickListener()
banner.removeOnBannerClickListener()
banner.addOnBannerResourceChangedListener()
banner.removeOnBannerResourceChangedListener()
banner.doOnPageScrolled()
banner.doOnPageSelected()
banner.doOnPageScrollStateChanged()
banner.addOnBannerChangeListener()
banner.removeOnBannerChangeListener()
ImageLoaderManager
class GlideImageLoader : OnBannerImageLoader<SimpleBannerItem> {
override fun instantiateItem(
container: ViewGroup,
item: SimpleBannerItem,
): View {
return ImageView(container.context).apply {
Glide.with(container.context)
.applyDefaultRequestOptions(RequestOptions().centerCrop())
.load(item.bannerUrl)
.into(this)
}
}
}
Related Skills
openhue
342.5kControl Philips Hue lights and scenes via the OpenHue CLI.
sag
342.5kElevenLabs text-to-speech with mac-style say UX.
weather
342.5kGet current weather and forecasts via wttr.in or Open-Meteo
tweakcc
1.5kCustomize Claude Code's system prompts, create custom toolsets, input pattern highlighters, themes/thinking verbs/spinners, customize input box & user message styling, support AGENTS.md, unlock private/unreleased features, and much more. Supports both native/npm installs on all platforms.
