@Override
        protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
            measureChildren(widthMeasureSpec, heightMeasureSpec);
            int widthSize = MeasureSpec.getSize(widthMeasureSpec);
            int heightSie = mMarker.getMeasuredHeight();
            setMeasuredDimension(widthSize, heightSie);
        }
Small FrameLayout class to hold and move the bubble around when requested
I wanted to use the {@link BalloonMarker} directly
but doing so would make some things harder to implement
(like moving the marker around, having the Marker's outline to work, etc)
caprice/ui/src/main/java/net/qiujuer/genius/ui/widget/popup/PopupIndicator.java