How to show/Hide Navigation Drawer programmatically

前端 未结 4 852
既然无缘
既然无缘 2021-02-02 05:56

How can I use button to show/hide Navigation Drawer, I have used this SO link to create and manage Navigation Drawer.

Now i am using (Swipe to right from left - to show)

4条回答
  •  执念已碎
    2021-02-02 06:39

    to Close Drawer:

    drawer.CloseDrawer((int)GravityFlags.Left);
    

    to Open Drawer:

    drawer.OpenDrawer((int)GravityFlags.Left);
    

提交回复
热议问题