protected override void OnMeasure (int widthMeasureSpec, int heightMeasureSpec)
		{
			int width = ResolveSize (SuggestedMinimumWidth, widthMeasureSpec);
			int height = ResolveSize (SuggestedMinimumHeight, heightMeasureSpec);
			SetMeasuredDimension (width, height);

			if (supportedPreviewSizes != null) {
				previewSize = GetOptimalPreviewSize (supportedPreviewSizes, width, height);
			}
		}
        protected override void OnMeasure(int widthMeasureSpec, int heightMeasureSpec)
        {
            // We purposely disregard child measurements because act as a
            // wrapper to a SurfaceView that centers the camera preview instead
            // of stretching it.
            int width = ResolveSize (SuggestedMinimumWidth, widthMeasureSpec);
            int height = ResolveSize (SuggestedMinimumHeight, heightMeasureSpec);
            SetMeasuredDimension (width, height);

            if (mSupportedPreviewSizes != null) {
                mPreviewSize = GetOptimalPreviewSize (mSupportedPreviewSizes, width, height);
            }
        }