private DrawerLayout inflateDrawerLayout ( ViewGroup parent ) { DrawerLayout drawer = ( DrawerLayout ) mActivity . getLayoutInflater ( ) . inflate ( R . layout . material_drawer , parent , false ) ; // Find the associated views mDrawerPane = ButterKnife . findById ( drawer , R . id . navdrawer ) ; mDrawerContentFrame = ButterKnife . findById ( drawer , R . id . drawer_content_frame ) ; mDrawerHeaderFrame = ButterKnife . findById ( mDrawerPane , R . id . header_container ) ; mDrawerFooterFrame = ButterKnife . findById ( mDrawerPane , R . id . footer ) ; mDrawerItemsListContainer = ButterKnife . findById ( mDrawerPane , R . id . navdrawer_items_list ) ; // Return the drawer return drawer ; }
Build the root drawer layout