chaychan / BottomBarLayout

(一个轻量级的底部导航控件)A simple and lightly widget to accomplish bottom Navigation,可设置未读数、提示点、提示消息
954 stars 193 forks source link

导航图标修改默认选择项 #27

Closed zhenghow closed 5 years ago

zhenghow commented 5 years ago

有没有修改默认选择底部导航图标的方法,比如打开后默认展示的是第三个fragment,相应的导航图标也应该是选中第三个

chaychan commented 5 years ago

@zhenghow 有的,你在设置完adapter以后调用mBottomBarLayout.setCurrentItem(2); 就可以了

zhenghow commented 5 years ago

谢谢

chaychan commented 5 years ago

@zhenghow 不客气