我一直在尝试按照androidhere的建议将我的代码移动到DrawerLayout因为SlidingDrawer已被弃用。我的问题是,到目前为止,DrawerLayout似乎实现得非常糟糕,有无用的错误消息(没有防御性编程)和/或文档中解释得不够好。isDrawerOpen()方法描述here:publicbooleanisDrawerOpen(Viewdrawer)Checkifthegivendrawerviewiscurrentlyinanopenstate.Tobeconsidered"open"thedrawermusthavesettledintoitsfullyvisi