code: void setPrimaryView(@NonNull final View primaryView) {
          if (mPrimaryView != null) {
              removeView(mPrimaryView);
          }
          mPrimaryView = primaryView;
          addView(mPrimaryView);
      }
docs: Sets the primary {@link android.view.View}. Removes any existing primary {@code View} if present.