Hi guys, just a quick question, I was trying to make this:
Copy code
with(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?