-
notify_tab_bar.addOnTabSelectedListener(
object: TabLayout.OnTabSelectedListener {
-
override
fun onTabSelected(tab: TabLayout.Tab?) {
-
notify_tab_bar.isEnabled =
false
-
//选择时触发
-
tab.let {
-
-
-
}
-
}
-
-
override
fun onTabUnselected(tab: TabLayout.Tab?) {
-
//未选择是触发
-
}
-
-
override
fun onTabReselected(tab: TabLayout.Tab?) {
-
tab.let {
-
//选中之后再次点击即复选时触发
-
-
-
}
-
}
-
-
})
转载:https://blog.csdn.net/mp624183768/article/details/110959125
查看评论