From 23d40dbca096e7aa3e7d4b352e6ad6a258c5853d Mon Sep 17 00:00:00 2001 From: Peter Serwylo Date: Sat, 11 Mar 2017 08:38:02 +1100 Subject: [PATCH] Added dependency to make working with complex RecyclerViews more manageable. There were a few different options around, but some of the best ones which provided the most flexibility when adding diverse/complex viewTypes to a recycler view target a minsdk above 10. The "adapterdelegates" library still offers a big improvement on vanila adapters, especially for the Updates view. --- app/build.gradle | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/build.gradle b/app/build.gradle index d7bedaf25..6f3b48811 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -47,6 +47,10 @@ dependencies { } compile 'io.reactivex:rxjava:1.1.0' compile 'io.reactivex:rxandroid:0.23.0' + compile('com.hannesdorfmann:adapterdelegates3:3.0.1') { + exclude module: 'support-annotations' + exclude module: 'recyclerview-v7' + } testCompile 'junit:junit:4.12' @@ -120,6 +124,7 @@ if (!hasProperty('sourceDeps')) { 'com.android.support:support-vector-drawable:071ae3695bf8427d3cbfc8791492a3d9c804a4b111aa2a72fbfe7790ea268e5d', 'com.android.support:transition:9fd1e6d27cb70b3c5cd19f842b48bbb05cb4e5c93a22372769c342523393e8ea', 'com.google.zxing:core:b4d82452e7a6bf6ec2698904b332431717ed8f9a850224f295aec89de80f2259', + 'com.hannesdorfmann:adapterdelegates3:1b20d099d6e7afe57aceca13b713b386959d94a247c3c06a7aeb65b866ece02f', 'com.madgag.spongycastle:core:9b6b7ac856b91bcda2ede694eccd26cefb0bf0b09b89f13cda05b5da5ff68c6b', 'com.madgag.spongycastle:pkix:6aba9b2210907a3d46dd3dcac782bb3424185290468d102d5207ebdc9796a905', 'com.madgag.spongycastle:prov:029f26cd6b67c06ffa05702d426d472c141789001bcb15b7262ed86c868e5643',