- Upgraded dependecies to AndroidX.
- Added
RealmRecyclerViewAdapter.dataOffset()
which adds support for header elements not managed by the Realm collection. Thank you @trr-amsiq. #153
Only works with Realm Java 5.0.0+.
RealmRecyclerViewAdapter.getItem(index)
now returnsnull
instead of crashing if index is out range, e.g. if footer views are added (#141)
- Thanks to @yasiralijaved for fixing Footer view support in
RealmRecyclerViewAdapter.getItem(index)
.
getItemId(int)
returned the item index instead ofNO_ID
as the default implementation (#132).
- Now
RealmBaseAdapter
behaves as empty if theadapterData
is not valid (#112).
- Added
updateOnModification
toRealmRecyclerViewAdapter
constructor (#107).
Works with Realm Java 3.x.
- Removed
RealmBaseAdapter(@Nonnull Context context, @Nullable OrderedRealmCollection<T> data)
. - Removed
RealmRecyclerViewAdapter(@NonNull Context context, @Nullable OrderedRealmCollection<T> data, boolean autoUpdate)
. - Removed
RealmBaseAdapter.inflater
. - Removed
RealmBaseAdapter.context
. - Removed
RealmRecyclerViewAdapter.inflater
. - Removed
RealmRecyclerViewAdapter.contex
.
- Added fine grained notification support to
RealmRecyclerViewAdapter
.
-
RealmBaseAdapter(@Nonnull Context context, @Nullable OrderedRealmCollection<T> data)
useRealmBaseAdapter(@Nullable OrderedRealmCollection<T> data)
instead -
RealmRecyclerViewAdapter(@NonNull Context context, @Nullable OrderedRealmCollection<T> data, boolean autoUpdate)
useRealmRecyclerViewAdapter(@Nullable OrderedRealmCollection<T> data, boolean autoUpdate)
instead.
- Thanks to Bhargav Mogra (@bhargavms) for identifying the unnecessary dependency on context and cleaning up.
- Fixed crash of
RealmRecyclerViewAdapter#updateData()
when theadapterData
in it was already invalid (#58).
- Removed transitive dependency to realm-android-library in order to support realm-android-library-object-server.
- Added Android Support Annotations for all public adapter methods.
- Lars Grefer (@larsgrefer) for adding the support annotations.
RealmRecyclerViewAdapter
uses RealmModel instead of RealmObject (#29).
- Fixed crash when auto-updating RealmResults (#25).
- Removed
appcompat-v7
from the library dependencies list.
RealmRecyclerViewAdapter
, a new adapter base class forRecyclerView
s.
- Removed
allowBackup
andsupportsRtl
from the Android manifest file.
- Paweł Surówka (@thesurix) for adding the
RealmRecyclerViewAdapter
. - Mitchell Tilbrook (@marukami) for cleaning up
AndroidManifest.xml
.`
- Javadoc and sources are now properly distributed as well.
- RealmBaseAdapter: Fixed listeners potentially leaking when using a RealmResults.
Initial release.