Question

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.

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top