albertm
07/26/2018, 3:34 PMwith(dataList as RecyclerView) {
layoutManager = createNewLayoutManager()
....
}
So I have the RecyclerView and set all the params, but it's not working. It works only if I make the direct cast like this:
(dataList as RecyclerView).layoutManager = createNewLayoutManager()
What I am doing wrong?karelpeeters
07/26/2018, 6:47 PM