コード例 #1
0
ファイル: AboutActivity.java プロジェクト: Crosswind/iosched
 @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
ファイル: DebugFragment.java プロジェクト: Crosswind/iosched
  @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));
  }