Hello, I have an EditText which contains an integer. I am trying to confine its values to 4 digits as follows:
<EditText android:id="@+id/foo" android:inputType="number" android:maxEms="4" android:textSize="20dp" android:layout_height="wrap_content" android:layout_width="match_parent"></EditText> but when I run my app in the emulator I can type more than 4 digits. What should I do? Thanks, John Goche -- 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