All Projects → ckenergy → StackCardRecyclerView

ckenergy / StackCardRecyclerView

Licence: other
this is RecyclerView like stack cards

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to StackCardRecyclerView

Searchable-RecyclerView-Demo
An example app using a SearchView to filter items in a RecyclerView while taking full advantage of item animations!
Stars: ✭ 722 (+3039.13%)
Mutual labels:  recyclerview
Android-Model-View-Presenter
No description or website provided.
Stars: ✭ 26 (+13.04%)
Mutual labels:  recyclerview
GeneralRecyclerViewFragment
Can automatically pull down the refresh, pull up the page of RecyclerviewFragment(能够自动下拉刷新,上拉翻页的RecyclerviewFragment)
Stars: ✭ 56 (+143.48%)
Mutual labels:  recyclerview
Exposure
Exposure是一个帮助做曝光统计需求的库,可以很方便的对曝光事件进行埋点,在现有代码上少量侵入即可实现曝光埋点。支持RV的线性布局、网格布局、瀑布流布局、横向滑动RV,ScrollView等各种滚动布局。支持配置item的有效曝光面积。
Stars: ✭ 51 (+121.74%)
Mutual labels:  recyclerview
RecyclerViewItemTouchUsing
图文混排发帖(完美复现汽车之家论坛发帖)
Stars: ✭ 23 (+0%)
Mutual labels:  recyclerview
TimelineView
A customizable and easy-to-use Timeline View library for Android. Works as a RecyclerView decorator (ItemDecoration)
Stars: ✭ 169 (+634.78%)
Mutual labels:  recyclerview
MultiSelectionRecyclerView
Android RecyclerView multi selection expand list items and change list items color
Stars: ✭ 19 (-17.39%)
Mutual labels:  recyclerview
LxAdapter
RecyclerView Adapter Library
Stars: ✭ 50 (+117.39%)
Mutual labels:  recyclerview
Shopping-Ecommerce-App-Project
Online shopping App built on Android Studio and Firebase Real-time Database.
Stars: ✭ 46 (+100%)
Mutual labels:  recyclerview
ItemDecorations
A dividers library for RecyclerView which use GridLayoutManager or LinearLayoutManager,when the RecyclerView used GridLayoutManager that supports Cross-Column feature.一款RecyclerView的分割线库,支持LinearLayoutManager和GridLayoutManager,当使用GridLayoutManager时支持跨行特性
Stars: ✭ 42 (+82.61%)
Mutual labels:  recyclerview
RecyclerViewAdapter
A RecyclerView Adapter that support load more and add headerview
Stars: ✭ 145 (+530.43%)
Mutual labels:  recyclerview
InfiniteScrollRecyclerView
Enables the RecyclerView to Auto scroll for indefinite time.
Stars: ✭ 49 (+113.04%)
Mutual labels:  recyclerview
GenericAdapter
⛳️ Easy to use android databinding ready recyclerview adapter
Stars: ✭ 26 (+13.04%)
Mutual labels:  recyclerview
solid
Solid Android components
Stars: ✭ 33 (+43.48%)
Mutual labels:  recyclerview
RvClickListenerExample
Example showing the implementation of onItemClickListener & getAdapterPosition() in RecyclerView.
Stars: ✭ 22 (-4.35%)
Mutual labels:  recyclerview
PullSeparateRecyclerView
No description or website provided.
Stars: ✭ 29 (+26.09%)
Mutual labels:  recyclerview
AndroidRecyclerViewWithLoadingEmptyAndRetry
recyclerview
Stars: ✭ 16 (-30.43%)
Mutual labels:  recyclerview
movie-booking
An example for booking movie seat, combined of Android Data Binding, State Design Pattern and Multibinding + Autofactory. iOS version is: https://github.com/lizhiquan/MovieBooking
Stars: ✭ 80 (+247.83%)
Mutual labels:  recyclerview
android-page
android 分页列表数据加载引擎,主要封装了android分页列表数据加载的各个组件,如果你有一个需要分页加载的List列表,都可以使用此框架实现。
Stars: ✭ 15 (-34.78%)
Mutual labels:  recyclerview
codeKK-Android
http://p.codekk.com/
Stars: ✭ 29 (+26.09%)
Mutual labels:  recyclerview

StackCardRecyclerView

中文版REANDME

this is RecyclerView like 6.0 Recent task

View GIF


thanks for CarouselLayoutManager , I use his framework.

dependencies

Maven Central
<dependency>
  <groupId>com.ckenergy.stackcardlayoutmanager</groupId>
  <artifactId>stackcardlayoutmanager</artifactId>
  <version>1.0.1</version>
  <type>pom</type>
</dependency>
Gradle
compile 'com.ckenergy.stackcardlayoutmanager:stackcardlayoutmanager:1.0.1'
Ivy
<dependency org='com.ckenergy.stackcardlayoutmanager' name='stackcardlayoutmanager' rev='1.0.1'>
  <artifact name='stackcardlayoutmanager' ext='pom' ></artifact>
</dependency>

There have two type Vertical and Horizontal


Any Type have two stack order(in stack and out stack) and two number order(positive and negative)

Example Horizontal not circle

  • 1.in stack order, positive
  • 2.out stack order, positive

  • 3.in stack order, negative
  • 4.out stack order, negative

There also have two number count type(less and more) for Vertical and Horizontal

It will be less count when width is bigger than height in Vertical layout and height is bigger than width is Horizontal layout.

  • 1.less have 7 item
  • 2.more have 9 item

How to use?

  • new StackCardLayoutManager default is in stack and positive, you can change this order
          StackCardLayoutManager stackCardLayoutManager = new StackCardLayoutManager(StackCardLayoutManager.VERTICAL,true, new StackCardPostLayout());
        stackCardLayoutManager.setStackOrder(StackCardLayoutManager.OUT_STACK_ORDER);
        stackCardLayoutManager.setNumberOrder(StackCardLayoutManager.NEGATIVE_ORDER); 
		recyclerView.setLayoutManager(stackCardLayoutManager);                
  • add swip and swip listener

ItemTouchHelperCallBack itemTouchHelperCallBack = new ItemTouchHelperCallBack();
itemTouchHelperCallBack.setOnSwipListener(swipListener);
ItemTouchHelper itemTouchHelper = new ItemTouchHelper(itemTouchHelperCallBack);
itemTouchHelper.attachToRecyclerView(recyclerView);
  • add scroll to position and center listener

// enable center post touching on item and item click listener
DefaultChildSelectionListener.initCenterItemListener(new DefaultChildSelectionListener.OnCenterItemClickListener() {
   @Override
   public void onCenterItemClicked(@NonNull final RecyclerView recyclerView, @NonNull final StackCardLayoutManager stackCardLayoutManager, @NonNull final View v) {
     final int position = recyclerView.getChildLayoutPosition(v);
     final String msg = String.format(Locale.US, "Item %1$d was clicked", position);
     Log.d("onCenterItemClicked", msg);
     Toast.makeText(BaseActivity.this, msg, Toast.LENGTH_SHORT).show();
   }
}, recyclerView, layoutManager);

TODO

  • 1.below LOLLIPOP overDraw need fix (i use view.setClipBounds(rect) but in below SDK LOLLIPOP is not work )
  • 2.need more faster (although it have fast scroll,when i scroll more faster the view aren't so fast)
  • 3.my english : )

License

Copyright 2016 ckenergy <[email protected]>
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].