https://kotlinlang.org logo
#announcements
Title
# announcements
a

Alan Evans

12/05/2018, 2:57 PM
Change the order so child is first:
Copy code
val layoutManager = parent.layoutManager
        when (layoutManager) {
            is GridLayoutManager -> {
                // Do smth
            }
            is LinearLayoutManager -> {
                // Do smth
            }
        }