Skip to content

Commit

Permalink
added pagination for recyclerview
Browse files Browse the repository at this point in the history
  • Loading branch information
Kunalapk committed Jul 15, 2020
1 parent c8ca57b commit 0d374dc
Show file tree
Hide file tree
Showing 101 changed files with 128 additions and 47 deletions.
Binary file removed .gradle/5.6.4/executionHistory/executionHistory.bin
Binary file not shown.
Binary file removed .gradle/5.6.4/executionHistory/executionHistory.lock
Binary file not shown.
Binary file removed .gradle/5.6.4/fileChanges/last-build.bin
Binary file not shown.
Binary file removed .gradle/5.6.4/fileContent/fileContent.lock
Binary file not shown.
Binary file removed .gradle/5.6.4/fileHashes/fileHashes.bin
Binary file not shown.
Binary file removed .gradle/5.6.4/fileHashes/fileHashes.lock
Binary file not shown.
Binary file removed .gradle/5.6.4/fileHashes/resourceHashesCache.bin
Binary file not shown.
Empty file removed .gradle/5.6.4/gc.properties
Empty file.
Binary file removed .gradle/5.6.4/javaCompile/classAnalysis.bin
Binary file not shown.
Binary file removed .gradle/5.6.4/javaCompile/jarAnalysis.bin
Binary file not shown.
Binary file removed .gradle/5.6.4/javaCompile/javaCompile.lock
Binary file not shown.
Binary file removed .gradle/5.6.4/javaCompile/taskHistory.bin
Binary file not shown.
Binary file modified .gradle/6.1.1/executionHistory/executionHistory.bin
Binary file not shown.
Binary file modified .gradle/6.1.1/executionHistory/executionHistory.lock
Binary file not shown.
Binary file modified .gradle/6.1.1/fileHashes/fileHashes.bin
Binary file not shown.
Binary file modified .gradle/6.1.1/fileHashes/fileHashes.lock
Binary file not shown.
Binary file modified .gradle/6.1.1/fileHashes/resourceHashesCache.bin
Binary file not shown.
Binary file modified .gradle/6.1.1/javaCompile/classAnalysis.bin
Binary file not shown.
Binary file modified .gradle/6.1.1/javaCompile/jarAnalysis.bin
Binary file not shown.
Binary file modified .gradle/6.1.1/javaCompile/javaCompile.lock
Binary file not shown.
Binary file modified .gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
Binary file modified .gradle/buildOutputCleanup/outputFiles.bin
Binary file not shown.
Binary file modified .gradle/checksums/checksums.lock
Binary file not shown.
Binary file modified .gradle/checksums/md5-checksums.bin
Binary file not shown.
Binary file modified .gradle/checksums/sha1-checksums.bin
Binary file not shown.
Binary file modified .idea/caches/build_file_checksums.ser
Binary file not shown.
5 changes: 5 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

59 changes: 47 additions & 12 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions app/app.iml
Original file line number Diff line number Diff line change
Expand Up @@ -70,18 +70,18 @@
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/kapt/debug" isTestSource="false" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/renderscript_source_output_dir/debug/out" isTestSource="false" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/ap_generated_sources/debug/out" isTestSource="false" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/debug" isTestSource="false" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/aidl_source_output_dir/debug/out" isTestSource="false" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/debug" isTestSource="false" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/renderscript_source_output_dir/debug/out" isTestSource="false" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/kaptKotlin/debug" isTestSource="false" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/debug" type="java-resource" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/kapt/debugAndroidTest" isTestSource="true" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/ap_generated_sources/debugAndroidTest/out" isTestSource="true" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/renderscript_source_output_dir/debugAndroidTest/out" isTestSource="true" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/aidl_source_output_dir/debugAndroidTest/out" isTestSource="true" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/androidTest/debug" isTestSource="true" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/renderscript_source_output_dir/debugAndroidTest/out" isTestSource="true" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/kaptKotlin/debugAndroidTest" isTestSource="true" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/aidl_source_output_dir/debugAndroidTest/out" isTestSource="true" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/kapt/debugAndroidTest" isTestSource="true" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/androidTest/debug" type="java-test-resource" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/kapt/debugUnitTest" isTestSource="true" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/ap_generated_sources/debugUnitTest/out" isTestSource="true" generated="true" />
Expand Down Expand Up @@ -135,11 +135,11 @@
<orderEntry type="module-library">
<library name="Gradle: kaptGeneratedClasses">
<CLASSES>
<root url="file://$MODULE_DIR$/build/tmp/kapt3/classes/debugUnitTest" />
<root url="file://$MODULE_DIR$/build/tmp/kapt3/classes/releaseUnitTest" />
<root url="file://$MODULE_DIR$/build/tmp/kapt3/classes/debugAndroidTest" />
<root url="file://$MODULE_DIR$/build/tmp/kapt3/classes/debug" />
<root url="file://$MODULE_DIR$/build/tmp/kapt3/classes/debugUnitTest" />
<root url="file://$MODULE_DIR$/build/tmp/kapt3/classes/release" />
<root url="file://$MODULE_DIR$/build/tmp/kapt3/classes/debugAndroidTest" />
<root url="file://$MODULE_DIR$/build/tmp/kapt3/classes/releaseUnitTest" />
</CLASSES>
<JAVADOC />
<SOURCES />
Expand Down
2 changes: 2 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ dependencies {
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
kapt 'com.android.databinding:compiler:3.1.4'

//implementation 'com.github.Kunalapk:SmartRecyclerView:1.2'

implementation project(':smartrecyclerview')

}
Binary file modified app/build/intermediates/dex/debug/mergeLibDexDebug/classes_0.dex
Binary file not shown.
Binary file modified app/build/intermediates/dex/debug/mergeProjectDexDebug/classes.dex
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Tue Jul 07 12:21:20 IST 2020
#Wed Jul 15 12:43:56 IST 2020
path.2=classes_0.dex
path.1=classes.dex
path.0=classes.dex
Expand Down
Binary file not shown.
Binary file not shown.
Binary file modified app/build/kotlin/compileDebugKotlin/build-history.bin
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
3
1
6
4
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified app/build/kotlin/compileDebugKotlin/last-build.bin
Binary file not shown.
Binary file modified app/build/kotlin/kaptGenerateStubsDebugKotlin/build-history.bin
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
5
3
8
6
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified app/build/kotlin/kaptGenerateStubsDebugKotlin/last-build.bin
Binary file not shown.
Binary file modified app/build/outputs/apk/debug/app-debug.apk
Binary file not shown.
Binary file modified app/build/tmp/kapt3/incApCache/debug/classpath-structure.bin
Binary file not shown.
Binary file modified app/build/tmp/kapt3/incApCache/debug/java-cache.bin
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
28 changes: 27 additions & 1 deletion app/src/main/java/com/kunalapk/demo/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,31 @@ class MainActivity : AppCompatActivity() {


smartRecyclerView = findViewById(R.id.smartRecyclerView)
smartRecyclerView.initSmartRecyclerView(this,smartRecyclerViewListener)
smartRecyclerView.initSmartRecyclerView(this,smartRecyclerViewListener,true)

smartRecyclerView.addItem(ModelData("Hello", "test"))
smartRecyclerView.addItem(ModelData("Hello", "test"))
smartRecyclerView.addItem(ModelData("Hello", "test"))
smartRecyclerView.addItem(ModelData("Hello", "test"))
smartRecyclerView.addItem(ModelData("Hello", "test"))
smartRecyclerView.addItem(ModelData("Hello", "test"))
smartRecyclerView.addItem(ModelData("Hello", "test"))
smartRecyclerView.addItem(ModelData("Hello", "test"))
smartRecyclerView.addItem(ModelData("Hello", "test"))
smartRecyclerView.addItem(ModelData("Hello", "test"))
smartRecyclerView.addItem(ModelData("Hello", "test"))
smartRecyclerView.addItem(ModelData("Hello", "test"))
smartRecyclerView.addItem(ModelData("Hello", "test"))
smartRecyclerView.addItem(ModelData("Hello", "test"))
smartRecyclerView.addItem(ModelData("Hello", "test"))
smartRecyclerView.addItem(ModelData("Hello", "test"))
smartRecyclerView.addItem(ModelData("Hello", "test"))
smartRecyclerView.addItem(ModelData("Hello", "test"))
smartRecyclerView.addItem(ModelData("Hello", "test"))
smartRecyclerView.addItem(ModelData("Hello", "test"))
smartRecyclerView.addItem(ModelData("Hello", "test"))
smartRecyclerView.addItem(ModelData("Hello", "test"))
smartRecyclerView.addItem(ModelData("Hello", "test"))
}

private val smartRecyclerViewListener:SmartRecyclerViewListener<ModelData> = object:SmartRecyclerViewListener<ModelData>{
Expand All @@ -42,6 +64,10 @@ class MainActivity : AppCompatActivity() {
Toast.makeText(baseContext,"OnRefresh Called",Toast.LENGTH_LONG).show()
}

override fun onLoadNext() {
Toast.makeText(baseContext,"OnLoadNext",Toast.LENGTH_LONG).show()

}
}

}
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ allprojects {
repositories {
google()
jcenter()

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

}
}

Expand Down
Loading

0 comments on commit 0d374dc

Please sign in to comment.