зеркало из https://github.com/DeGsoft/maui-linux.git
41 строка
761 B
C#
41 строка
761 B
C#
using System;
|
|
using Android.Content;
|
|
using Android.Runtime;
|
|
using Android.Util;
|
|
using Android.Widget;
|
|
|
|
namespace Xamarin.Forms.Platform.Android
|
|
{
|
|
public 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;
|
|
}
|
|
}
|
|
} |