Hiding contexual action bar while navigation drawer is open

后端 未结 3 1393
小鲜肉
小鲜肉 2021-01-02 04:17

The question is similar to this except for the fact that instead of using a View Pager (VP) I want to use a Navigation Drawer (ND). I have a list of elements that activates

3条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-02 04:45

    The Sprockets library (disclosure: I'm the developer) does this automatically when extending NavigationDrawerActivity and SprocketsListFragment. Instead of the latter, it's also possible to extend SprocketsFragment and provide your AbsListView in getAbsListView(). When the navigation drawer is opened, the ActionMode will be hidden. And when it is closed, the ActionMode will be restored.

提交回复
热议问题