Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.cymchad:baserecyclerviewadapterhelper:3.0.11'
}
dependencies {
implementation("com.github.cymchad:baserecyclerviewadapterhelper:3.0.11")
}
<dependency>
<groupId>com.github.cymchad</groupId>
<artifactId>baserecyclerviewadapterhelper</artifactId>
<version>3.0.11</version>
</dependency>
libraryDependencies += "com.github.cymchad" % "baserecyclerviewadapterhelper" % "3.0.11"
:dependencies [[com.github.cymchad/baserecyclerviewadapterhelper "3.0.11"]]
Powerful and flexible RecyclerView Adapter, Please feel free to use this. (Welcome to Star and Fork)
强大而灵活的RecyclerView Adapter(欢迎 Star 和 Fork)
新版4.x.x已发布,完美兼容ConcatAdapter,解决了许多遗留问题,拆分了功能模块,BaseAdapter更加简洁干净。“多类型布局”更加灵活。向上、向下加载得到极大加强。
v4版本已经上传 maven 中央仓库,不需要再引入三方仓库配置了。欢迎尝试。
Of course, you can continue to use the 2.x version.
(由于各位项目成员工作较为繁忙,请各位同学谅解)
implementation("io.github.cymchad:BaseRecyclerViewAdapterHelper4:4.3.4")
此资源库自带混淆规则,并且会自动导入,正常情况下无需手动导入。
The library comes with
proguard-rules.prorules and is automatically imported. Normally no manual import is required. You can also go here to view proguard-rules
JoanZapata / base-adapter-helper