コード例 #1
0
 @Override
 public void onStop() {
   super.onStop();
   if (vp != null) {
     if (getActivity() != null) {
       vp.startAnimation(AnimationUtils.loadAnimation(getActivity(), R.anim.abc_slide_out_bottom));
     }
   }
 }
コード例 #2
0
 private void showGUIListMenu() {
   if (mGuiMenu != null && mGuiMenu.getVisibility() != View.VISIBLE) {
     mGuiMenu.setVisibility(View.VISIBLE);
     mGuiMenu.startAnimation(mInAnimationFromLeft);
     if (!mTabletVersion) {
       mGuiFooter.setVisibility(View.GONE);
       mPager.setVisibility(View.GONE);
       mPager.startAnimation(mOutAnimation2Right);
     }
     mMenuShown = true;
   }
 }
コード例 #3
0
  protected void hideGUIListMenu() {
    if (mGuiMenu != null && mGuiMenu.getVisibility() == View.VISIBLE) {
      mGuiMenu.setVisibility(View.GONE);
      mGuiMenu.startAnimation(mOutAnimation2Left);
      if (!mTabletVersion) {
        mGuiFooter.setVisibility(View.VISIBLE);
        mPager.setVisibility(View.VISIBLE);
        mPager.startAnimation(mInAnimationFromRight);
      }
      mMenuShown = false;

      InputMethodManager im = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
      if (im != null && im.isActive()) {
        im.hideSoftInputFromWindow(mGuiMenu.getWindowToken(), 0);
      }
    }
  }