Android Edittext Unlimited Text Length
is there a device specific limitation (other then total free memory size) to text length or line count in scrollable multiline EditText when android:maxLength and android:maxLines
Solution 1:
Adding android:maxLength="99999999" to your layout file fixes this!
Solution 2:
I had this same problem, and setting android:maxLength="999999
in the XML didn't fix this. But programmatically setting the length filter worked, like this:
EditTextmPrimaryPhoneField= (EditText) findViewById(R.id.primary_phone);
InputFilter[] phoneFilterArray = newInputFilter[1];
//This needs to be a large number to fix a bug on Samsung Galaxy tablet where it would have a default limitation on numeric fields if you had no length filter at all.
phoneFilterArray[0] = newInputFilter.LengthFilter(100);
mPrimaryPhoneField.setFilters(phoneFilterArray);
Post a Comment for "Android Edittext Unlimited Text Length"