Kotlin implements the function of sticky list title + ListView

First, test
implementation, the second picture gif can change the code by yourself

2. Understanding
1.The sticky list title does not have click events (every line (content) of it can click events)

    override fun isEnabled(position: Int): Boolean {
   
    
    
        return if (itemList.get(position<

Guess you like

Origin blog.csdn.net/qq_35091074/article/details/123796787