In common cases all apps with Nawigation Drawer from support v4 in android has FrameLayout for containgn stuff and ListView but I need to do it in different wat instead ListView put there a Fragment, does anyyone did something like this?

Any advices will be helpfull for me. Thanks in advance.

有帮助吗?

解决方案

All methods of NavigationDrawer are using drawerView variable of type View. It means you can use any subclass of View, not only ListView, so you can take, for example, another FrameLayout as container for you Fragments and work directly with it.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top