public RealtimeBlurView(Context context) : base(context) { _preDrawListener = new PreDrawListener(this); mBlurImpl = GetBlurImplementation(); // provide your own by override getBlurImpl() mBlurRadius = TypedValue.ApplyDimension(ComplexUnitType.Dip, 10, context.Resources.DisplayMetrics); //mDownsampleFactor = a.getFloat(R.styleable.RealtimeBlurView_realtimeDownsampleFactor, 4); mPaint = new Paint(); }
public RealtimeBlurView(Context context, string formsId) : base(context) { mBlurImpl = GetBlurImpl(); // provide your own by override getBlurImpl() mPaint = new Paint(); _formsId = formsId; _isContainerShown = true; _autoUpdate = true; preDrawListener = new PreDrawListener(this); }
public RealtimeBlurView(Context context, string formsId) : base(context) { mBlurImpl = GetBlurImpl(); // provide your own by override getBlurImpl() mPaint = new Paint(); _formsId = formsId; _isContainerShown = true; _autoUpdate = true; preDrawListener = new PreDrawListener(this); //RealtimeBlurViewInstanceCount++; //InternalLogger.Debug("RealtimeBlurView", $"Constructor => Active instances: {RealtimeBlurViewInstanceCount}"); }
/** * @param blurView View which will draw it's blurred underlying content * @param rootView Root View where blurView's underlying content starts drawing. * Can be Activity's root content layout (android.R.id.content) * or some of your custom root layouts. */ public BlockingBlurController(Context context, View blurView, ViewGroup rootView, int overlayColor = TRANSPARENT) { this.rootView = rootView; this.blurView = blurView; this.overlayColor = overlayColor; this.blurAlgorithm = new RenderScriptBlur(context); int measuredWidth = blurView.MeasuredWidth; int measuredHeight = blurView.MeasuredHeight; _preDrawListener = new PreDrawListener(this); _globalLayoutListener = new GlobalLayoutListener(this); if (IsZeroSized(measuredWidth, measuredHeight)) { DeferBitmapCreation(); return; } Init(measuredWidth, measuredHeight); }