示例#1
0
 @Override
 protected void onResume() {
   super.onResume();
   int actionBarSize = UIUtils.calculateActionBarSize(this);
   DrawShadowFrameLayout drawShadowFrameLayout =
       (DrawShadowFrameLayout) findViewById(R.id.main_content);
   if (drawShadowFrameLayout != null) {
     drawShadowFrameLayout.setShadowTopOffset(actionBarSize);
   }
   setContentTopClearance(actionBarSize);
 }
示例#2
0
  @Override
  public void onResume() {
    super.onResume();

    // configure fragment's top clearance to take our overlaid controls (Action Bar
    // and spinner box) into account.
    int actionBarSize = UIUtils.calculateActionBarSize(getActivity());
    DrawShadowFrameLayout drawShadowFrameLayout =
        (DrawShadowFrameLayout) getActivity().findViewById(R.id.main_content);
    if (drawShadowFrameLayout != null) {
      drawShadowFrameLayout.setShadowTopOffset(actionBarSize);
    }
    setContentTopClearance(
        actionBarSize + getResources().getDimensionPixelSize(R.dimen.explore_grid_padding));
  }