增加了选定
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user