private void measureFloater() {
        int specWidth = View.MeasureSpec.makeMeasureSpec(screenSize.x, View.MeasureSpec.EXACTLY);
        int specHeight = View.MeasureSpec.makeMeasureSpec(screenSize.y, View.MeasureSpec.AT_MOST);
        mPopupView.measure(specWidth, specHeight);
    }
private void measureFloater ( ) { int specWidth = View . MeasureSpec . makeMeasureSpec ( screenSize . x , View . MeasureSpec . EXACTLY ) ; int specHeight = View . MeasureSpec . makeMeasureSpec ( screenSize . y , View . MeasureSpec . AT_MOST ) ; mPopupView . measure ( specWidth , specHeight ) ; }
We want the Floater to be full-width because the contents will be moved from side to side.
We may/should change this in the future to use just the PARENT View width and/or pass it in the constructor