protected override void OnMeasure(int widthMeasureSpec, int heightMeasureSpec) { _valuePicker.Measure(widthMeasureSpec, heightMeasureSpec); _unitLabel.Measure(widthMeasureSpec, heightMeasureSpec); _combinedWidth = _valuePicker.MeasuredWidth > _unitLabel.MeasuredWidth ? _valuePicker.MeasuredWidth : _unitLabel.MeasuredWidth; var height = _valuePicker.MeasuredHeight + _unitLabel.MeasuredHeight + VERTICAL_SPACING; SetMeasuredDimension(_combinedWidth + PaddingStart + PaddingEnd, height + PaddingTop + PaddingBottom); }