2016-03-22 23:02:25 +03:00
|
|
|
using System;
|
|
|
|
using Android.Content;
|
|
|
|
using Android.Runtime;
|
|
|
|
using Android.Widget;
|
|
|
|
|
|
|
|
namespace Xamarin.Forms.Platform.Android
|
|
|
|
{
|
2017-04-06 16:19:52 +03:00
|
|
|
internal class FormsImageView : ImageView, IImageRendererController
|
2016-03-22 23:02:25 +03:00
|
|
|
{
|
|
|
|
bool _skipInvalidate;
|
|
|
|
|
|
|
|
public FormsImageView(Context context) : base(context)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
protected FormsImageView(IntPtr javaReference, JniHandleOwnership transfer) : base(javaReference, transfer)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
public override void Invalidate()
|
|
|
|
{
|
|
|
|
if (_skipInvalidate)
|
|
|
|
{
|
|
|
|
_skipInvalidate = false;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
base.Invalidate();
|
|
|
|
}
|
|
|
|
|
|
|
|
public void SkipInvalidate()
|
|
|
|
{
|
|
|
|
_skipInvalidate = true;
|
|
|
|
}
|
2018-11-04 01:45:28 +03:00
|
|
|
|
|
|
|
bool IImageRendererController.IsDisposed => false;
|
2016-03-22 23:02:25 +03:00
|
|
|
}
|
|
|
|
}
|