@Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        // TODO: Manage sizes to avoid specific ones. It always must be parent size (match_parent)
        int widthSize = MeasureSpec.getSize(widthMeasureSpec);
        int heightSize = MeasureSpec.getSize(heightMeasureSpec);
        mWidth.set(widthSize);
        mHeight.set(heightSize);
        mQuadrangle.set(0, 0, widthSize, heightSize);
        super.onMeasure(widthMeasureSpec, heightMeasureSpec);
    }
@Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
       
        int widthSize = MeasureSpec.getSize(widthMeasureSpec);
        int heightSize = MeasureSpec.getSize(heightMeasureSpec);
        mWidth.set(widthSize);
        mHeight.set(heightSize);
        mQuadrangle.set(0, 0, widthSize, heightSize);
        super.onMeasure(widthMeasureSpec, heightMeasureSpec);
    }
@override protected void onmeasure(int widthmeasurespec, int heightmeasurespec) { int widthsize = measurespec.getsize(widthmeasurespec); int heightsize = measurespec.getsize(heightmeasurespec); mwidth.set(widthsize); mheight.set(heightsize); mquadrangle.set(0, 0, widthsize, heightsize); super.onmeasure(widthmeasurespec, heightmeasurespec); }