增加了选定

This commit is contained in:
董宏宇
2020-07-31 19:27:59 +08:00
parent 271db725aa
commit b02d29b686
3 changed files with 7 additions and 4 deletions

View File

@@ -81,12 +81,12 @@ class EventPanelFragment : MvpFragment<EventPanelFragment, EventPanelPresenter>(
//要执行这一句才是真正将两者绑定起来
mediator!!.attach()
// 选中指定的Tab
//tabLayout.getTabAt(selectPosition)?.select()
btnShowOrHidePanels.setOnClickListener {
if (clPanelContainer.visibility == View.GONE) {
showPanel()
// 选中指定的Tab
tabLayout.getTabAt(selectPosition)?.select()
vpEventPanel.currentItem = selectPosition
} else {
hidePanel()
}