Comments (3)
//简单使用
bannerHomePlan
.setPages(imgList, new HolderCreator() {
@OverRide
public BannerViewHolder createViewHolder() {
return new CustomViewHolder();
}
})
.setAutoPlay(true)
.setDelayTime(3000)
.start();
public class CustomViewHolder implements BannerViewHolder {
private ImageView mImageView;
@Override
public View createView(Context context) {
// 返回mImageView页面布局
mImageView = new ImageView(context);
ViewGroup.LayoutParams params = new ViewGroup.LayoutParams(
ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT
);
mImageView.setLayoutParams(params);
mImageView.setScaleType(ImageView.ScaleType.FIT_XY);
return mImageView;
}
@Override
public void onBind(Context context, int position, Object data) {
//GlideConfig.displayImage((String)data,mImageView);
Glide.with(context).load(data).into(mImageView);
}
}
结果Banner图片显示圆形
from banner.
@1226362423 使用上是看不出问题,应该是其他的问题,建议一步一步排查
from banner.
是我这边的问题,是图片本身出了问题
from banner.
Related Issues (20)
- 能提供adapter的获取方法么 HOT 1
- 太耗时
- 为啥isStart 一直是false HOT 1
- 您好,能嵌套在recycleview中使用吗?比如在九宫格图片展示的recycleView, 每个格子的图片可以轮播
- 可否设置滑动方向,水平Or垂直
- bug
- 如果项目的compileSdkVersion<28的话,编译会报error: failed linking references. HOT 1
- The application's PagerAdapter changed the adapter's contents without calling PagerAdapter HOT 3
- 设置两端缩进属性,手动进行滑动时出现侧面没有正常缩小的问题 HOT 4
- 性能能否优化一下,当滑动的多了,有时候滑动的时候页面就是空白的 HOT 18
- page_right_margin page_left_margin 设置值比较大时,设置的区域 无法互动 HOT 1
- 你好,怎么滑动到某个页面,setCurrentPage无效? HOT 1
- 右端缩进模式,当图片滑到最后一张能变成左端缩进吗? HOT 6
- license HOT 1
- 手动滑动的多了,会出行空白页
- 有副标题的需求,应该怎么搞 HOT 1
- 复杂页面轮播时debug包正常 release包内存飙升卡顿
- 两端缩进依然有问题! HOT 5
- page_left_margin 如何动态设置
- 能否支持指示器放在banner外部
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from banner.