Пример #1
0
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    mViewPager = new HackyViewPager(this);
    setContentView(mViewPager);
  }
Пример #2
0
  /*
   * <p>Title: onDestroy</p>
   * <p>Description: </p>
   * @see com.android.hotelcontrol.base.BaseActivity#onDestroy()
   */
  @Override
  protected void onDestroy() {
    // TODO Auto-generated method stub

    if (mViewPager != null) mViewPager.destroyDrawingCache();
    mViewPager = null;
    inParamMap = null;
    imageList = null;
    spa = null;
    super.onDestroy();
  }