LinearLayout@422725b0 is not a sliding drawer

不问归期 提交于 2019-12-04 05:47:17

The view must have either Gravity.LEFT or Gravity.RIGHT to be recognized as a sliding drawer. You can replace

android:gravity="start"

with

android:gravity="left"

or, as suggested above alternatively replace

isDrawerOpen(linearLayout) 

with

isDrawerOpen(Gravity.LEFT)

I just added

android:layout_gravity="start"

and that worked for me.

I also had such an issue. After I added

android:layout_gravity="left"

everything worked out fine.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!