I need to just set the maxLenght of a textView programmatically and i found this
editText.setFilters(new InputFilter[] { new InputFilter.LengthFilter(12) });
But i can make it work in my c# someone knows how?
Have you tried to see what for exampel intellisense says? Perhaps editText.Filters says something?
Its been a while since this question was asked, but for anyone's future reference.
editText.SetFilters(new Android.Text.IInputFilter[]{new Android.Text.InputFilterLengthFilter(5)});
Edited to add ) at the end.
//Filter length == 10
MyEditText.SetFilters( new IInputFilter[] { new InputFilterLengthFilter(10) } );
How to restrict edit text, allow only 2 digits after decimal point.?
See here the shortest way to implement Textview maxlength programatically : github.com/9306488494/MyLib
Posts
Have you tried to see what for exampel intellisense says? Perhaps editText.Filters says something?
Its been a while since this question was asked, but for anyone's future reference.
editText.SetFilters(new Android.Text.IInputFilter[]{new Android.Text.InputFilterLengthFilter(5)});
Edited to add ) at the end.
//Filter length == 10
MyEditText.SetFilters( new IInputFilter[] { new InputFilterLengthFilter(10) } );
How to restrict edit text, allow only 2 digits after decimal point.?
See here the shortest way to implement Textview maxlength programatically : github.com/9306488494/MyLib