public ShadowView(Context context, View shadowSource, float cornerRadius) : base(context) { _renderScript = RenderScript.Create(context); _weakSource = new JniWeakReference <View>(shadowSource); _shadesBitmaps = new List <Bitmap>(); _cornerRadius = cornerRadius; }
public ShadowView(Context context, View shadowSource, float cornerRadius, string tag = null) : base(context) { _renderScript = RenderScript.Create(context); _weakSource = new JniWeakReference <View>(shadowSource); _cache = BitmapCache.Instance; _shadeInfos = new Dictionary <Shade, ShadeInfo>(); _cornerRadius = cornerRadius; LogTag = !string.IsNullOrEmpty(tag) ? $"{nameof(ShadowView)}@{tag}" : nameof(ShadowView); InternalLogger.Debug(LogTag, () => $"ShadowView(): {++instanceCount} instances"); }