/*@Override protected int getSelfNavDrawerItem() { return NAVDRAWER_ITEM_VIDEO_LIBRARY; } */ @Override protected void onResume() { super.onResume(); invalidateOptionsMenu(); Fragment frag = getFragmentManager() .findFragmentById(com.saarang.samples.apps.iosched.R.id.videos_fragment); if (frag != null) { // configure video fragment's top clearance to take our overlaid controls (Action Bar // and spinner box) into account. int actionBarSize = UIUtils.calculateActionBarSize(this); int filterBarSize = getResources() .getDimensionPixelSize(com.saarang.samples.apps.iosched.R.dimen.filterbar_height); mDrawShadowFrameLayout.setShadowTopOffset(actionBarSize + filterBarSize); ((VideoLibraryFragment) frag) .setContentTopClearance( actionBarSize + filterBarSize + getResources() .getDimensionPixelSize( com.saarang.samples.apps.iosched.R.dimen.explore_grid_padding)); } }
@Override protected void onActionBarAutoShowOrHide(boolean shown) { super.onActionBarAutoShowOrHide(shown); mDrawShadowFrameLayout.setShadowVisible(shown, shown); }