Error : View android.widget.ListView is not a sliding drawer

后端 未结 3 2076
Happy的楠姐
Happy的楠姐 2020-12-10 18:17

I am using NavigationDrawer in my Android app, I have made my own custom layouts XML file and their adapters also but When I run my program then my application

3条回答
  •  南笙
    南笙 (楼主)
    2020-12-10 18:55

    Your ListView must specify the android:layout_gravity attribute in the xml so it can be identified as sliding drawer by the DrawerLayout. Use right, left, start, end as values.

提交回复
热议问题