Kotlin extension for Base adapter for typed object and notification for auto refresh
Kotlin
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.idea
app
gradle/wrapper
.gitignore
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
settings.gradle

README.md

BaseTypeAdapter

Kotlin extension for Base adapter for typed object and notification for auto refresh

Install

Add to gradle in allprojects >

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

then add this

compile 'com.github.matteocrippa:BaseTypeAdapter:0.0.2'

Usage

BaseTypeAdapter provide you a new variable called data, each time you modify its content it forces the list to auto-reload.

Example:

inner class ListAdapter(context: Context) : BaseTypeAdapter<Int>() {}

e.g. when you will apply to adapter.data any list of Int, this will auto refresh the entire list.