Sam
09/16/2019, 6:37 AMTsvetozar Bonev
09/16/2019, 6:39 AMSam
09/16/2019, 6:43 AMTsvetozar Bonev
09/16/2019, 6:43 AMSam
09/16/2019, 6:45 AMLuca Nicoletti
09/16/2019, 8:01 AMis ArrayList<*>
does not assure you you have an ArrayList<String>
Sam
09/16/2019, 8:03 AMAny
for flexible to cast Type of data in RecyclerView.Luca Nicoletti
09/16/2019, 8:03 AMArrayList<String>
Sam
09/16/2019, 8:04 AMLuca Nicoletti
09/16/2019, 8:06 AMas? ArrayList<String>?
that would return null
if the cast failsSam
09/16/2019, 8:12 AMArray<*>
with as?
Luca Nicoletti
09/16/2019, 8:12 AMif
🙂starke
09/16/2019, 5:51 PMYes, I have a lot of models which different types, so I must usethere are other ways of representing your data where you don’t have to deal with a list offor flexible to cast Type of data in RecyclerView.Any
Any
using something like https://github.com/lisawray/groupie can do a lot of the heavy lifting there for you too