-
Notifications
You must be signed in to change notification settings - Fork 372
Expand file tree
/
Copy pathCachedImageView.cs
More file actions
44 lines (35 loc) · 920 Bytes
/
CachedImageView.cs
File metadata and controls
44 lines (35 loc) · 920 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
using System;
using Android.Content;
using Android.Runtime;
using Android.Util;
using Android.Graphics.Drawables;
using Android.Widget;
namespace FFImageLoading.Forms.Platform
{
public class CachedImageView : ImageView
{
bool _skipInvalidate;
public CachedImageView(IntPtr javaReference, JniHandleOwnership transfer) : base(javaReference, transfer)
{
}
public CachedImageView(Context context) : base(context)
{
}
public CachedImageView(Context context, IAttributeSet attrs): base(context, attrs)
{
}
public override void Invalidate()
{
if (_skipInvalidate)
{
_skipInvalidate = false;
return;
}
base.Invalidate();
}
public void SkipInvalidate()
{
_skipInvalidate = true;
}
}
}