It helps reading the documentation, but here's your answer: addFilter(view, new InputFilter.LengthFilter(maxLength));
On Jan 29, 7:00 am, android beginner <android.beginne...@gmail.com> wrote: > Hi, > > I need to have an EditText with maximum width for 4 characters. I do not > want set maximum width in pixels as I have my target with couple of > different screen resolutions. > > Can anyone suggest me how to do this? > > Thanks -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en