Everyday use android adapters
##Gradle
repositories {
maven{url "https://github.com/shaubert/maven-repo/raw/master/releases"}
}
dependencies {
compile 'com.shaubert.ui.adapters:library:1.4.1'
}
From CommonsWare with changes:
AdapterWrapper� to wrap adapters;EndlessAdapter� to load more items;MergeAdapter� to combine adapters;SackOfViewsAdapter� to create adapter from views;
From library:
StableIdsFragmentStatePagerAdapter� FragmentStatePagerAdapter with stable item ids and notifyDataSetChange() support;AdaptersCarousel� multi-adapter, you can populate it with other adapters and dynamically change current;AdapterWithEmptyItem� adapter wrapper that can show empty item if count == 0.CheckableAdapter� check/uncheck item views (that extendsCheckableinterface) in adapter;FilteredAdapter� adapter wrapper to filter items;ListAdapter� base list adapter, that supports filtering, comparison, and useful methods likeaddAll()andreplaceAll().ListBaseAdapter�BaseAdapterwith list of items;PagesAdapter� simpleFragmentStatePagerAdapterextension;SectionListAdapter�BaseAdapterwith sections;
Versions for RecycleView:
RecyclerMergeAdapter� same asMergeAdapter;RecyclerAdapterWithEmptyItem� same asAdapterWithEmptyItem;RecyclerAdapterWrapper� same asAdapterWrapper;RecyclerEndlessAdapter� same asEndlessAdapter;RecyclerAdapter� same asListBaseAdapter;RecyclerSackOfViewsAdapter� same asSackOfViewsAdapter;RecyclerSectionAdapter� same asSectionListAdapterRecyclerCheckableAdapter� same asCheckableAdapter
RapidMenuChangePageListener� implementation ofViewPager.OnPageChangeListenerto hide/show fragment menu ononPageSelected(faster than default way).