Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 603 Bytes

README.md

File metadata and controls

28 lines (18 loc) · 603 Bytes

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.