class NimbleRelativeLayout extends RelativeLayout implements NimbleView {

  @Override
  protected void onDetachedFromWindow() {
    super.onDetachedFromWindow();
    presenter().dropView(getMvpView());
    if (getActivity().isFinishing()) {
      presenter().onDestroy();
    }
  }

  public  NimbleRelativeLayout(Context context);
  public  NimbleRelativeLayout(Context context, AttributeSet attrs);
  public  NimbleRelativeLayout(Context context, AttributeSet attrs, int defStyleAttr);

}