Created
June 19, 2012 03:57
-
-
Save STAR-ZERO/2952228 to your computer and use it in GitHub Desktop.
【Android】ソースコードからEditTextにMaxLength設定
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| EditText editText = new EditText(this); | |
| editText.setInputType(InputType.TYPE_CLASS_TEXT); | |
| editText.setFilters(new InputFilter[] {new InputFilter.LengthFilter(10)}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment