All Projects → xiaohange → JQFlowView

xiaohange / JQFlowView

Licence: MIT License
卡片式无限自动轮播图 ,无限/自动轮播,可自定义非当前显示view缩放和透明的特效等;喜欢❤️就star一下吧!

Programming Languages

objective c
16641 projects - #2 most used programming language
shell
77523 projects
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to JQFlowView

FooterNavigationView
FooterNavigationView helps to show a footer inside the NavigationView
Stars: ✭ 30 (+25%)
Mutual labels:  customview
CustomWaterView
⭐ 仿支付宝蚂蚁森林效果
Stars: ✭ 118 (+391.67%)
Mutual labels:  customview
ShaderView
ShaderView is an Android View that makes it easy to use GLSL shaders for your app. It's the modern way to use shaders for Android instead of RenderScript.
Stars: ✭ 53 (+120.83%)
Mutual labels:  customview
NoiseView
Android library written in kotlin that add a noise effect to image.
Stars: ✭ 47 (+95.83%)
Mutual labels:  customview
MultiShapeView
支持圆角矩形,圆形自定义View
Stars: ✭ 35 (+45.83%)
Mutual labels:  customview
RippleBackground
Ripple animation
Stars: ✭ 32 (+33.33%)
Mutual labels:  customview
PaymentCardView
Custom Credit/Debit card view
Stars: ✭ 62 (+158.33%)
Mutual labels:  customview
SIRIWaveView
Siri like wave view for android
Stars: ✭ 65 (+170.83%)
Mutual labels:  customview
ionic-3D-card-carousel
DEPRECATED Sample project that shows an experimental 3D card carousel in Ionic.
Stars: ✭ 29 (+20.83%)
Mutual labels:  carousel-3d
ShowcaseView
ShowcaseView library for Android
Stars: ✭ 196 (+716.67%)
Mutual labels:  customview
BeautyClock
A simple project draw clock view by using Canvas and Kotlin
Stars: ✭ 14 (-41.67%)
Mutual labels:  customview
BetterBottomBar
Fork of the BottomNavigationView from the design lib to allow for view state, accessibility and colorful animations
Stars: ✭ 33 (+37.5%)
Mutual labels:  customview
double-avatar-view
Instagram-like double avatar view with cropping
Stars: ✭ 31 (+29.17%)
Mutual labels:  customview
AACustomFont
[UNMAINTAINED] AACustomFont is a lightweight custom font binder in XML directly in TextView, Button, EditText, RadioButton, CheckBox tags. The library is aimed to avoid custom views for custom fonts in XML and to minimize the JAVA code for setting the TypeFaces for each view.
Stars: ✭ 76 (+216.67%)
Mutual labels:  customview
PaperView
PaperView 是一个自定义的View,它就像一张纸折叠和展开
Stars: ✭ 26 (+8.33%)
Mutual labels:  customview
epg magic carousel
Awesome RecyclerView with custom LayoutManager
Stars: ✭ 98 (+308.33%)
Mutual labels:  customview
ComposableSweetToast
Jetpack Compose, Custom Toast, Solid Principles, Kotlin
Stars: ✭ 60 (+150%)
Mutual labels:  customview
AndroidJoyStickView
This library lets you create joystick with some customization for android
Stars: ✭ 45 (+87.5%)
Mutual labels:  customview
MyView
一些杂七杂八的控件
Stars: ✭ 26 (+8.33%)
Mutual labels:  customview
DottedView
Drawing Dots in android
Stars: ✭ 13 (-45.83%)
Mutual labels:  customview

JQFlowView

卡片式无限自动轮播图 ,无限/自动轮播,可自定义非当前显示view缩放和透明的特效等;喜欢❤️就star一下吧!

Instalation

Add the JQFlowView source files to your project.

Usage

_pageFlowView = [[JQFlowView alloc] initWithFrame:CGRectMake(0, 0, KScreenWidth, (KScreenWidth - 84) * 9 / 16 + 24)];
    
    _pageFlowView.backgroundColor = [UIColor whiteColor];
    _pageFlowView.delegate = self;
    _pageFlowView.dataSource = self;
    _pageFlowView.minimumPageAlpha = 0.4;
    _pageFlowView.minimumPageScale = 0.90;
    _pageFlowView.orginPageCount = self.imageArray.count;
    _pageFlowView.isOpenAutoScroll = YES;
    _pageFlowView.autoTime = 3.0;
    _pageFlowView.orientation = JQFlowViewOrientationHorizontal;
    //初始化pageControl
    UIPageControl *pageControl = [[UIPageControl alloc] initWithFrame:CGRectMake(0, _pageFlowView.frame.size.height - 24 - 8, KScreenWidth, 8)];
    _pageFlowView.pageControl = pageControl;
    [_pageFlowView addSubview:pageControl];
    
    [_pageFlowView reloadData];
    [_scrollView addSubview:_pageFlowView];

JQFlowViewDelegate 代理方法:

- (CGSize)sizeForPageInFlowView:(JQFlowView *)flowView
{
    return CGSizeMake(KScreenWidth - 84, (KScreenWidth - 84) * 9 / 16);
}
- (void)didSelectCell:(UIView *)subView withSubViewIndex:(NSInteger)subIndex
{
    NSLog(@"点击了第%ld张图",(long)subIndex + 1);
}

JQFlowViewDatasource 代理方法:

- (NSInteger)numberOfPagesInFlowView:(JQFlowView *)flowView
{
    return self.imageArray.count;
}
- (UIView *)flowView:(JQFlowView *)flowView cellForPageAtIndex:(NSInteger)index
{
    JQIndexBannerSubview *bannerView = (JQIndexBannerSubview *)[flowView dequeueReusableCell];
    if (!bannerView) {
        bannerView = [[JQIndexBannerSubview alloc] initWithFrame:CGRectMake(0, 0, KScreenWidth - 84, (KScreenWidth - 84) * 9 / 16)];
        bannerView.layer.cornerRadius = 4;
        bannerView.layer.masksToBounds = YES;
        //        bannerView.mainImageView.image = [bannerView.mainImageView.image stretchableImageWithLeftCapWidth:30 topCapHeight:30];
    }
    
    //在这里下载网络图片
    [bannerView.mainImageView sd_setImageWithURL:[NSURL URLWithString:self.imageArray[index]] placeholderImage:nil];
    
    //    bannerView.mainImageView.image = self.imageArray[index];
    
    return bannerView;
}

- (void)didScrollToPage:(NSInteger)pageNumber inFlowView:(JQFlowView *)flowView
{
    NSLog(@"滚动到了第%ld页",pageNumber);
}

Star

iOS开发者交流群:446310206 喜欢就❤️❤️❤️star一下吧!你的支持是我更新的动力! Love is every every every star! Your support is my renewed motivation!

Other

JQTumblrHud-高仿Tumblr App 加载指示器hud

JQScrollNumberLabel:仿tumblr热度滚动数字条数

TumblrLikeAnimView-仿Tumblr点赞动画效果

JQMenuPopView-仿Tumblr弹出视图发音频、视频、图片、文字的视图

License

This code is distributed under the terms and conditions of the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].