saiwu-bigkoo/Android-ConvenientBanner
saiwu-bigkoo/Android-ConvenientBanner has 4,735 GitHub stars and 1,036 forks. GitHot measured -1 stars in 24 hours and -2 in 7 days. Last checked 2026-11-09 12:53 UTC. Last push 2023-10-10.
Simple and convenient banner, loop viewpager with 3D effects
Measured star growth
- in 24h
- -1
- in 7 days
- -2
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalConvenientBanner
ͨ�õĹ�ؼ�ʵ�ֹ�ͷЧ�֧�ѭ�Զ�ҳ�ʱ�(�ҷdz�ܣ�ָ�ͣ�ҳ�뿪�Զ�ʼ�ҳ�Ҳ�ڽ�onPause�ʱ��Զ�ҳ�onResume֮�Զ�ҳ)�ṩ�ַ�ҳ�Ч� �Ա�ؼ��Ҫ�Դ�иĶ�ܼ�ͼƬ�߰�㼯�ɲ�Ҫ�ͼƬ�⡣�д�㻶ϲ�Ҫ�Կ�Դ��Ϳ�ʹ�κ�ϲ�ͼƬ�ϡ�
Demo
�ģ�е�Ч�겦�ģ�̫�ԭ�ʵ�Ч�Ч�ͼ�Ŷ�

demo�Module�ʽ�Ҳ�ʹ�gradle �:
implementation 'com.bigkoo:convenientbanner:2.1.5'//�ַ�Сд�ˣ��
implementation 'androidx.recyclerview:recyclerview:1.0.0+'
// compile 'com.bigkoo:ConvenientBanner:2.1.4'//�ַ�ConvenientBanner �д�ˣ��
//compile 'com.bigkoo:convenientbanner:2.0.5'�ɰ�
Config in xml
<com.bigkoo.convenientbanner.ConvenientBanner
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/convenientBanner"
android:layout_width="match_parent"
android:layout_height="200dp"
app:canLoop="true" //�ѭ�
/>
config in java code
//�Զ�Holder�ʵ�ָ�ิ�ӵĽ�棬�һ�ͼƬ�ҳ�κοؼ�ҳ�ɡ�
convenientBanner.setPages(
new CBViewHolderCreator() {
@Override
public LocalImageHolderView createHolder(View itemView) {
return new LocalImageHolderView(itemView);
}
@Override
public int getLayoutId() {
return R.layout.item_localimage;
}
}, localImages)
//�ͼƬ�Ϊ�ҳָʾ�û�ָʾ�Ը�Լ�Լ�ָʾ�,�ҪԲ�ָʾ�ò�
// .setPageIndicator(new int[]{R.drawable.ic_page_indicator, R.drawable.ic_page_indicator_focused})
.setOnItemClickListener(this);
//�ָʾ�ķ�
// .setPageIndicatorAlign(ConvenientBanner.PageIndicatorAlign.ALIGN_PARENT_RIGHT)
// .setOnPageChangeListener(this)//�ҳ�¼�
;
public class LocalImageHolderView implements Holder<Integer>{
private ImageView imageView;
@Override
public View createView(Context context) {
imageView = new ImageView(context);
imageView.setScaleType(ImageView.ScaleType.FIT_XY);
return imageView;
}
@Override
public void UpdateUI(Context context, final int position, Integer data) {
imageView.setImageResource(data);
}
}
Thanks
�˵�
v2.1.5
- androidx
v2.1.4
- �Ϊ�յ�ʱ�쳣�
v2.1.3
- notifyDataSetChange�ʱ�ص�0�λ�á�
v2.1.2
- �setlayoutManager�ˡ�
v2.1.1
- �ڲ�ʵ�ָ�Ϊ�Զ�LinearSnapHelper�ΪPagerSnapHelper�
v2.1.0
- ��ָʾ�ͱ�
v2.0.9
- �¶canLoop�API�̬�
v2.0.8
- �Ϊ�б�header demo��loopģʽ�µ�һ�ε�ָʾ�ͼ�겻ѡ�
v2.0.7
- �PhotoView�Fresco�ϱ�Ϊ�ͼƬԤ�ؼ�ӣ�ȡ�õ�ǰposition api
v2.0.6
- ʹ�RecycleView�ʵ�֣�api�ı䣬�xml�÷�ҳʱ�
v2.0.5
- ViewPagerʵ�ַ�ʽ
Explore related projects
ytdl-org/youtube-dl
Command-line program to download videos from YouTube.com and other video sites
141,500 starsexcalidraw/excalidraw
Virtual whiteboard for sketching hand-drawn like diagrams
135,396 starsgodotengine/godot
Godot Engine – Multi-platform 2D and 3D game engine
119,840 starsmrdoob/three.js
JavaScript 3D Library.
117,983 stars