AdapterDelegates
AdapterDelegates copied to clipboard
"Favor composition over inheritance" for RecyclerView Adapters
`java.lang.NoSuchMethodError: No virtual method _$_findCachedViewById(I)Landroid/view/View; in class Lcom/hannesdorfmann/adapterdelegates4/dsl/AdapterDelegateLayoutContainerViewHolder; or its super classes (declaration of 'com.hannesdorfmann.adapterdelegates4.dsl.AdapterDelegateLayoutContainerViewHolder' appears in /data/data/ru.hintsolutions.diabets/code_cache/.overlay/base.apk/classes34.dex) ` 4.3.0 works fine, I put the version more - I get...
My vision on how to implement support for new paging 3 jetpack library. Relates to #88 Main obstacle is that AdapterDelegates are heavily based on "List" in their implementations. And...
In Paging 3 library google introduce new PagingDataAdapter instead of PagedListAdapter https://stackoverflow.com/questions/63069302/difference-between-pagingdataadapter-and-pagedlistadapter-in-android-paging-libr#:~:text=PagingDataAdapter%20is%20the%20Paging3%20replacement,separators%2C%20LoadState%2Daware%20headers%20%2F Please add it
Sometimes we need a view holder without any logic, for example shimmer. Now we need to pass empty curly braces to the adapter delegate:  Wouldn't it be more convenient...
Hi people! I have a question about the classes hierarchy in the library: Why `AsyncListDifferDelegationAdapter` is not extending `ListDelegationAdapter`?
This allows a method reference to be passed which makes the adapter delegates way nicer to use. Unfortunately this is a breaking change because there is now an additional parameter....
Hi, Paging 3 is a complete rework of previous paging solution by Google. Adapter delegates have support for version 2. Would be good to have support for version 3 as...
Does the AbsListAdapter class for generic list means support for SortedList as well?
Hi! I try to use adapter delegates for building reusable widgets. For example, I have several buttons, which have some differences in width, height, background, and maybe some other UI...
Use case: I've got a few layouts which I can reuse on different screens. Think of an empty screen. Empty screen consists of an Emoji, text and also subtitle. ```kotlin...