``` tab_layout.setOnTabSelectListener(object : OnTabSelectListener { override fun onTabS...
a
Copy code
tab_layout.setOnTabSelectListener(object : OnTabSelectListener {
            override fun onTabSelect(position: Int) {
                switchFragment(position)
            }

            override fun onTabReselect(position: Int) {

            }
})
Guys, can this line of code convert into lambda without using
object: OnTabSelectListener
?