What do you need to pass to v4.widget.DrawerLayout.isDrawerOpen()/.openDrawer()/.closeDrawer()

后端 未结 4 1231
死守一世寂寞
死守一世寂寞 2020-12-18 18:30

I\'ve been trying to move my code across to the DrawerLayout as suggested by android here as SlidingDrawer is deprecated.

My problem is tha

4条回答
  •  攒了一身酷
    2020-12-18 18:47

    If you are using the drawer layout from the support library as we can see from your question that you are, there is also the method:

    closeDrawers()
    

    This will close all open drawers (which is usually just the one).

提交回复
热议问题