In developer.android training there is an explnation on how to create Navigation Drawer http://developer.android.com/training/implementing-navigation/nav-drawer.html. there is a sample app in this tuturial --> http://developer.android.com/shareables/training/NavigationDrawer.zip .
in eclipse you can also create Navigation Drawer (file->new->android application project....->Navigation Drawer activity). in eclipse Navigation Drawer activity there is a NavigationDrawerFragment class , but in the sample app they use ListView
my question is why the sample app and eclipse Navigation Drawer activity are so diffrent (Although they have the same functionality)? what is the use of NavigationDrawerFragment class? why to use Fragement ( instead of ListView like in the sample app)?