@Override
 void onCreate() {
   super.onCreate();
   mButtonSize = Dips.asIntPixels(CLOSE_BUTTON_SIZE, getContext());
   mButtonPadding = Dips.asIntPixels(CLOSE_BUTTON_PADDING, getContext());
   createInterstitialCloseButton();
   mCloseButton.setVisibility(GONE);
   mVideoView.start();
 }
  public CloseableLayout(@NonNull Context context) {
    super(context);

    mCloseDrawable = new StateListDrawable();
    mClosePosition = ClosePosition.TOP_RIGHT;

    mCloseDrawable.addState(
        SELECTED_STATE_SET, INTERSTITIAL_CLOSE_BUTTON_PRESSED.createDrawable(context));
    mCloseDrawable.addState(
        EMPTY_STATE_SET, INTERSTITIAL_CLOSE_BUTTON_NORMAL.createDrawable(context));

    mCloseDrawable.setState(EMPTY_STATE_SET);
    mCloseDrawable.setCallback(this);

    mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop();

    mCloseRegionSize = Dips.asIntPixels(CLOSE_REGION_SIZE_DP, context);
    mCloseButtonSize = Dips.asIntPixels(CLOSE_BUTTON_SIZE_DP, context);
    mCloseButtonPadding = Dips.asIntPixels(CLOSE_BUTTON_PADDING_DP, context);

    setWillNotDraw(false);
  }