Skip to content

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

Notifications You must be signed in to change notification settings

matteocrippa/BaseTypeAdapter

Repository files navigation

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.

About

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

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages