C# – Android EditText sets the maximum length
•
Android
Hi, everyone, I have a problem. I tried to set the maximum length of EditText, but I didn't succeed
I've tried this:
a.setFilters (new InputFilter[] { new InputFilter.LengthFilter (a.Length) });
I got some errors (not in A. length)
And so on:
a.setMaxLength ( a.Lenght);
There are still some mistakes
I think I forgot some titles, but it's just a guess
Prompt me to use xamarin. Thank you first
resolvent:
If you use c#best, if you try
MyEditText.SetFilters( new IInputFilter[] { new InputFilterLengthFilter(10) } );
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码