Skip to content

JackChen365/RecyclerViewLibrary2

Repository files navigation

RecyclerViewLibrary

Sample file

APK file

Compile

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

implementation 'com.github.momodae.RecyclerViewLibrary2:layoutmanager:1.0.1'
implementation 'com.github.momodae.RecyclerViewLibrary2:pulltorefresh:1.0.1'
implementation 'com.github.momodae.RecyclerViewLibrary2:adapter:1.0.1'
implementation 'com.github.momodae.RecyclerViewLibrary2:library:1.0.1'

Tools version

Most important: all the libraries were use the AndroidX, not the appcompat.

//The build.gradle
compileSdkVersion 29
buildToolsVersion "29.0.2"


defaultConfig {
    minSdkVersion 19
    targetSdkVersion 29
}

implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.recyclerview:recyclerview:1.1.0'

For module:library
Because of the nested scroll didn't support API-19 so we upgrade this module to API-21

Tips:

  • All the libraries use java purely.
  • Only the sample module use kotlin.
  • The demonstrate module base on this library:AndroidSampleLibrary. Just check all the activities. Do not try to find a initialize application or something like that.

About PullToRefreshRecyclerView

image1

image1

Check this document:readme

About the PullToRefresh.

image1

image2

image3

image4

Check this document:readme

About LayoutManager

  • ViewPager
  • Gallery
  • Wheel

viewpager

gallery

wheel

Check this document:readme

About the support adapters.

  • HeaderWrapperAdapter
  • DynamicWrapperAdapter
  • SelectWrapperAdapter
  • DragWrapperAdapter
  • StickyWrapperAdapter
  • BaseAdapter
  • ExpandAdapter
  • TreeAdapter
  • FilterAdapter
  • CursorAdapter
  • StickyAdapter

cursor_adapter

drag_adapter

dynamic_adapter

expand_adapter

filter_adapter

header_adapter

select_adapter

sticky_adapter

tree_adapter

Check this document:readme

Problems

  • About module:library

It's wired that I have another version of this library. It's totally written by the Kotlin. And that module word in API-19 well. For some reason, I got this problem. It tells me the Nested scroll not support in API-19. It doesn't matter. The Androidx if for modern application. So we support from API-21 is fine. android-nosuchmethoderror-android-support-v7-widget-recyclerview-onnestedscroll

About

An recycler library for androidx

Resources

Stars

Watchers

Forks

Packages

No packages published