DrawerLayout must be measured with MeasureSpec.EXACTLY error

前端 未结 12 2452
独厮守ぢ
独厮守ぢ 2020-12-03 16:54

I am trying to implement a Navigation drawer, but I keep getting this error. I saw the similar questions but did not work for me. I have the following layout activity_main2.

12条回答
  •  庸人自扰
    2020-12-03 17:21

    If you still get this Exception make sure that your activity is full Screen defined In Manifest u can do in Activity:

    android:theme="@style/Theme.AppCompat.Light.FullScreen"
    

    Or define this in styles.xml:

     
    

提交回复
热议问题