blob: 1dc25ea96bfde15ebde66c37865b3a70452da615 (
plain)
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
|
using System;
using Android.Content;
using Android.Runtime;
using Android.Util;
using Android.Widget;
namespace Xamarin.Forms.Platform.Android
{
internal class FormsTextView : TextView
{
bool _skip;
public FormsTextView(Context context) : base(context)
{
}
public FormsTextView(Context context, IAttributeSet attrs) : base(context, attrs)
{
}
public FormsTextView(Context context, IAttributeSet attrs, int defStyle) : base(context, attrs, defStyle)
{
}
protected FormsTextView(IntPtr javaReference, JniHandleOwnership transfer) : base(javaReference, transfer)
{
}
public override void Invalidate()
{
if (!_skip)
base.Invalidate();
_skip = false;
}
public void SkipNextInvalidate()
{
_skip = true;
}
}
}
|