@Override protected void onDetachedFromWindow() { super.onDetachedFromWindow(); this.onStop(); this.onDestroy(); }
@Override protected void onWindowVisibilityChanged(int visibility) { super.onWindowVisibilityChanged(visibility); if (visibility == View.VISIBLE) { this.onResume(); } }
@Override protected void onFinishInflate() { super.onFinishInflate(); initUI(); }