public static void fillStickyDrawerItemFooter ( DrawerBuilder drawer , ViewGroup container , View . OnClickListener onClickListener ) { //add all drawer items for ( IDrawerItem drawerItem : drawer . mStickyDrawerItems ) { View view = drawerItem . generateView ( container . getContext ( ) , container ) ; view . setTag ( drawerItem ) ; if ( drawerItem . isEnabled ( ) ) { //UIUtils.setBackground(view, UIUtils.getSelectableBackground(container.getContext(), selected_color, drawerItem.isSelectedBackgroundAnimated())); view . setOnClickListener ( onClickListener ) ; } container . addView ( view ) ; //for android API 17 --> Padding not applied via xml DrawerUIUtils . setDrawerVerticalPadding ( view ) ; } //and really. don't ask about this. it won't set the padding if i don't set the padding for the container container . setPadding ( 0 , 0 , 0 , 0 ) ; }
helper method to fill the sticky footer with it s elements