7449 / bannerlayout Goto Github PK
View Code? Open in Web Editor NEWSupport unlimited picture rotation BannerLayout, the minimum implementation of the code banner
License: Apache License 2.0
Support unlimited picture rotation BannerLayout, the minimum implementation of the code banner
License: Apache License 2.0
mShopVp.initListResources(data)
.setImageLoaderManager(new ImageManager())
.initTips(true,true,false)
.setOnBannerClickListener(new OnBannerClickListener() {
@OverRide
public void onBannerClick(View view, int position, ShopViewPagerModel model) {
/* 广告页点击事件 */
}
})
.start(true,4000);
以上代码运行,在initTip处会报错
android.content.res.Resources$NotFoundException: Resource ID #0x0
如果用initTip()代替initTips(true,true,false)就能正常运行
我添加了动画效果,发现点击viewpager的item,只有点击一次的效果。后面再点击就没反应了
比如请求到的网络图片发生了改变,图片张树和指示原点都需要改变
Hi there,
First of all thanks for this handy and useful library 👍
Some questions:
proguard
rules?thanks :)
compileSdkVersion,target 28
bannerLayout
.delayTime(3000)
.setOnBannerImageLoader(GlideImageLoader())
.resource(adapter)
// .addTipLayout(BannerTip(
// dotSelector = R.drawable.selector_banner_dots,
// dotSite = BannerTipLayout.CENTER,
// tipWidth = BannerLayout.MATCH_PARENT,
// dotWidth = 30,
// dotHeight = 30,
// tipHeight = 60))
.addOnItemClickListener { view, _, info ->
val openURL = Intent(Intent.ACTION_VIEW)
openURL.data = Uri.parse(info.title)
startActivity(openURL)
}
// xml
<com.android.banner.BannerLayout
android:id="@+id/bannerLayout"
android:layout_width="match_parent"
android:layout_height="150dp"
app:banner_guide="true"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
same your exam.
app:banner_duration="8000" 这个滑动的速度设置了没有用
只有滑动了两次,和重新加载一次图片才能布满界面的宽度
库很清楚很好用,但是在当作recyclerView的头部的时候,左右快速滑动,会带动上下滑动,希望能改动一下触摸事件 :)
可以支持垂直轮播?
你的那个title的颜色不能设置,位置和小圆点位置重叠,这可以提供接口,让用户设置,而且不支持扩展,希望可以更改
想要设置2个标题 一个主标题一个副标题
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.