ok, is there any easy way of it . actually I have five different Lists with search functionality so therefore I want to abstract Search logic in base Adapter then extend Other five adapters from Base adapter, please help how can I achieve this
k
karelpeeters
02/23/2018, 4:06 PM
And why do you need generic variance for this?
Dis you carefully read the link I posted?
k
Kulwinder Singh
02/23/2018, 4:09 PM
as I mentioned I need I'm creating Base functionality for search for recycler view that's by I'm using genrics
but I don't know if its a best idea or not
if not best practice then what's a best approach for this scenrio
k
karelpeeters
02/23/2018, 4:40 PM
I still don't really get what you want 😞
k
Kulwinder Singh
02/24/2018, 3:17 AM
Spose u have 10 Different RecyclerView adapters each having Search functionality (filters list according SearchView) then how do you deal with with Duplication of code,do you write filtering logic in each Adapter ?