コード例 #1
0
 @Override
 public void onSizeChanged(int width, int height, int oldWidth, int oldHeight) {
   super.onSizeChanged(width, height, oldWidth, oldHeight);
   if (mPlanetInfos == null) {
     return;
   }
   placePlanets();
 }
コード例 #2
0
  @Override
  public void onDetachedFromWindow() {
    super.onDetachedFromWindow();

    ImageManager.eventBus.unregister(mEventHandler);
    if (mBackgroundRenderer != null) {
      mBackgroundRenderer.close();
      mBackgroundRenderer = null;
    }
    ShieldManager.eventBus.unregister(mEventHandler);
  }
コード例 #3
0
 @Override
 protected void onAttachedToWindow() {
   super.onAttachedToWindow();
   ShieldManager.eventBus.register(mEventHandler);
   ImageManager.eventBus.register(mEventHandler);
 }