Skip to content

rovkinmax/easyrecycler

Repository files navigation

easyrecycler

provide fading action bar with recyclerview

alt text

Gradle
dependencies {
   compile 'pro.useit.recyclerview:easyrecycler:1.0.6'
   compile 'com.android.support:cardview-v7:21.0.3'//cause requered RecyclerView and Layout Managers
}

#####Use ParallaxRecyclerAdapter [see example][1] [1]:https://github.com/rovkinmax/easyrecycler/blob/master/app/src/main/java/pro/useit/paralaxrecycleradapter/ExampleAdapter.java

#####Use SpacesItemDecoration similar spacing between the elements even in the grid

int spanCount = 3;
int dividerWidth = 10;
final SpacesItemDecoration itemDecoration = new SpacesItemDecoration(deviderWidth, spanCount);
itemDecoration.setIgnoreFirst(adapter.isEnableHeader());
recyclerView.addItemDecoration(itemDecoration);

#####Use GridLayoutManager with header

ParallaxRecyclerAdapter adapter = //some implements of ParallaxRecyclerAdapter
HeaderGridLayoutManager layoutManager = new HeaderGridLayoutManager(adapter, spanCount, HeaderGridLayoutManager.VERTICAL, false);
recyclerView.setLayoutManager(layoutManager);

License

Copyright (c) 2015 Rovkin Max

Licensed under the Apache License, Version 2.0

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages