All Projects → adgvcxz → CardLayoutManager

adgvcxz / CardLayoutManager

Licence: Apache-2.0 license
A custom layoutManager providing a Tinder-like cards effect.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to CardLayoutManager

Awesome Recyclerview Layoutmanager
RecyclerView-LayoutManager Resources
Stars: ✭ 581 (+1470.27%)
Mutual labels:  recyclerview, layoutmanager
Focuslayoutmanager
有焦点item的水平/垂直滚动RecyclerView-LayoutManager。仿Android豆瓣书影音“推荐“频道列表布局
Stars: ✭ 772 (+1986.49%)
Mutual labels:  recyclerview, layoutmanager
Discretescrollview
A scrollable list of items that centers the current element and provides easy-to-use APIs for cool item animations.
Stars: ✭ 5,533 (+14854.05%)
Mutual labels:  recyclerview, layoutmanager
Stacklayoutmanager
customized layoutmanager,let item pile up like stackview/类似最美有物卡片堆叠效果
Stars: ✭ 343 (+827.03%)
Mutual labels:  recyclerview, layoutmanager
Jkcardlayout
高仿即刻APP探索页卡片布局拖拽、卡片前进、回退和下拉效果,采用RecyclerView和自定义LayoutManager实现
Stars: ✭ 111 (+200%)
Mutual labels:  recyclerview, layoutmanager
Stackcardlayoutmanager
Stars: ✭ 376 (+916.22%)
Mutual labels:  recyclerview, layoutmanager
Timetablelayout
TimetableLayout is a RecyclerView.LayoutManager to display the timetable for Android.
Stars: ✭ 726 (+1862.16%)
Mutual labels:  recyclerview, layoutmanager
SlideView
🔖 Card RecycleViewManager, to make your interface cool.Use recyclerView to add cool effects to the view.
Stars: ✭ 16 (-56.76%)
Mutual labels:  recyclerview, layoutmanager
Reel Search Android
Reel Search for Android is a UI/UX design for autocomplete action. It is a beautiful minimalistic addition to any use case.
Stars: ✭ 110 (+197.3%)
Mutual labels:  recyclerview, layoutmanager
Cardswipelayout
Use RecyclerView to achieve card swipe layout , like Tantan . (模仿探探卡片滑动效果的布局)
Stars: ✭ 1,081 (+2821.62%)
Mutual labels:  recyclerview, layoutmanager
Horizontalpicker
A simple, customizable and easy to use picker where centre view is scaled up
Stars: ✭ 337 (+810.81%)
Mutual labels:  recyclerview, layoutmanager
Cardstackview
📱Tinder like swipeable card view for Android
Stars: ✭ 1,850 (+4900%)
Mutual labels:  recyclerview, layoutmanager
Chipslayoutmanager
ANDROID. ChipsLayoutManager (SpanLayoutManager, FlowLayoutManager). A custom layout manager for RecyclerView which mimicric TextView span behaviour, flow layouts behaviour with support of amazing recyclerView features
Stars: ✭ 3,138 (+8381.08%)
Mutual labels:  recyclerview, layoutmanager
Spannedgridlayoutmanager
Android RecyclerView.LayoutManager that resizes and reorders views based on SpanSize
Stars: ✭ 492 (+1229.73%)
Mutual labels:  recyclerview, layoutmanager
SpannedGridLayoutManager
Android RecyclerView.LayoutManager that resizes and reorders views based on SpanSize
Stars: ✭ 522 (+1310.81%)
Mutual labels:  recyclerview, layoutmanager
Gallerylayoutmanager
New way to implements ViewPager/Gallery in Android with RecycleView
Stars: ✭ 684 (+1748.65%)
Mutual labels:  recyclerview, layoutmanager
epg magic carousel
Awesome RecyclerView with custom LayoutManager
Stars: ✭ 98 (+164.86%)
Mutual labels:  recyclerview, layoutmanager
InfiniteScrollRecyclerView
Enables the RecyclerView to Auto scroll for indefinite time.
Stars: ✭ 49 (+32.43%)
Mutual labels:  recyclerview, layoutmanager
Turn Layout Manager
A carousel layout manager for RecyclerView
Stars: ✭ 946 (+2456.76%)
Mutual labels:  recyclerview, layoutmanager
Carouselrecyclerview
Carousel Recyclerview let's you create carousel layout with the power of recyclerview by creating custom layout manager.
Stars: ✭ 107 (+189.19%)
Mutual labels:  recyclerview, layoutmanager

CardLayoutManager

简单、可扩展的一个LayoutManager,实现了类似于探探和Tinder,滑动图片

  • 监听滑动中的事件与动画过程
  • 支持smoothScrollToPositionscrollToPosition
  • 自定义LinearLayout.HORIZONTAL或者LinearLayout.VERTICAL
  • 自定义显示卡片个数以及卡片之间的间隙
  • 自定义显示卡片的排列方向: LEFT RIGHT TOP BOTTOM
  • 自定义滑动方向: setVerticalSwipe setHorizontalSwipe
  • 对滑动过程进行控制
  • 简单易用,扩展性高

预览

滑动smoothScrollToPosition

初始化

CardLayoutManager layoutManager = new CardLayoutManager();
recyclerView.setLayoutManager(layoutManager);
new CardSnapHelper().attachToRecyclerView(recyclerView);

监听滑动事件

layoutManager.setOnCardSwipeListener(new OnCardSwipeListener() {
	......
}

自定义滑动控制

如果只是在smoothScrollToPosition不想随机卡片的起点和终点可以继承BaseCardSwipeController重写其中的方法

如果想完全控制整个滑动,则需要继承CardSwipeController实现其中所有方法

导入

allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}

dependencies {
    compile 'com.github.adgvcxz:cardlayoutmanager:0.2.1'
}

感谢

ChipsLayoutManager

FanLayoutManager

LICENSE

Copyright 2016 adgvcxz

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the 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].