https://kotlinlang.org logo
Title
s

sylcn

08/23/2017, 8:43 AM
I want to use an arrayadapter in listview
g

gildor

08/23/2017, 8:44 AM
My advice: don’t use listview, only recyclerview
s

sylcn

08/23/2017, 8:44 AM
why ?
g

gildor

08/23/2017, 8:44 AM
Because RecyclerView is much better replacement for listview
b

bamdmux

08/23/2017, 8:45 AM
Exactly
s

sylcn

08/23/2017, 8:46 AM
🤗 🤔 🤔 I'll give a chance to recyclerview 😄
g

gildor

08/23/2017, 8:46 AM
of course, in some cases ListView can be the only option (you use some legacy code, or legacy third party dependency, or cannot use support library dependencies), but for all other cases just use RecyclerView
b

bamdmux

08/23/2017, 8:47 AM
If you still want to use listview, i found this: http://scottmmjackson.com/learning-kotlin-simple-listview-adapter/
s

sylcn

08/23/2017, 8:47 AM
Ok now Im going to change listview to recyclerview
👍 1
Thanks all