diff --git a/summary/EditText inputType.md b/summary/EditText inputType.md new file mode 100644 index 0000000..32fcc60 --- /dev/null +++ b/summary/EditText inputType.md @@ -0,0 +1,50 @@ +# EditText inputType +## πŸ“ EditText의 inputType μ†μ„±μ΄λž€? +> EditTextκ°€ μž…λ ₯받을 λ°μ΄ν„°μ˜ μœ ν˜•μ„ 미리 μ§€μ •ν•˜μ—¬ μ‚¬μš©μžμ˜ μž…λ ₯ ν˜•μ‹μ„ μ œν•œν•˜κ±°λ‚˜ 검증할 λ•Œ μ‚¬μš©λ˜λŠ” 속성 +- β€˜|β€™λ‘œ κ΅¬λΆ„ν•˜μ—¬ μ—¬λŸ¬ μœ ν˜• κ²°ν•© κ°€λŠ₯ + + EX) `android:inputType="text|textMultiLine"` + +- μ§€μ •ν•˜μ§€ μ•ŠμœΌλ©΄ μ€„λ°”κΏˆ μž…λ ₯ κ°€λŠ₯ +
+ +## πŸ“ inputType μœ ν˜• + +| Type | Description | +| --- | --- | +| text | μ „ν˜•μ μΈ ν…μŠ€νŠΈ μž…λ ₯으둜 μ€„λ°”κΏˆ λΆˆκ°€λŠ₯ | +| textCapCharacters | 영문 μž…λ ₯ μ‹œ λŒ€λ¬Έμžλ‘œ μž…λ ₯ (Shiftλ₯Ό 눌러 μˆœκ°„μ μœΌλ‘œ μ†Œλ¬Έμž μž…λ ₯도 κ°€λŠ₯ν•˜λ‹ˆ 주의) | +| textCapWords | λͺ¨λ“  λ‹¨μ–΄μ˜ 첫 번째 영문이 λŒ€λ¬Έμžλ‘œ μž…λ ₯ | +| textCapSentences | λͺ¨λ“  λ¬Έμž₯의 첫 번째 영문이 λŒ€λ¬Έμžλ‘œ μž…λ ₯ | +| textAutoCorrect | μž…λ ₯에 λŒ€ν•΄ μžλ™ ꡐ정 κ°€λŠ₯ | +| textAutoComplete | μž…λ ₯에 λŒ€ν•΄ μžλ™ μ™„μ„± κ°€λŠ₯ | +| textMultiLine | μ€„λ°”κΏˆ κ°€λŠ₯ (default: single line, max length: 5000) | +| textNoSuggestions | μž…λ ₯ μ‹œ 사전에 λ“±λ‘λœ 단어λ₯Ό μΆ”μ²œ λ‹¨μ–΄λ‘œ ν‘œμ‹œν•˜μ§€ μ•ŠμŒ | +| textEnableTextConversionSuggestions | μΆ”κ°€ 정보가 μžˆλŠ” 경우 제곡 (EX. 일본어 κΈ€μž λ³€ν™˜) | +| textUri | URI μž…λ ₯ | +| textEmailAddress | 이메일 μ£Όμ†Œ μž…λ ₯ | +| textEmailSubject | 이메일 제λͺ© μž…λ ₯ | +| textShortMessage | 짧은 λ©”μ‹œμ§€ μž…λ ₯ | +| textLongMessage | κΈ΄ λ©”μ‹œμ§€ μž…λ ₯ | +| textPersonName | μ‚¬λžŒ 이름 μž…λ ₯ | +| textPostalAddress | μ£Όμ†Œ 우편번호 μž…λ ₯ | +| textPassword | μž…λ ₯된 λ¬Έμžκ°€ 가렀지도둝 λΉ„λ°€λ²ˆν˜Έ μž…λ ₯ | +| textVisiblePassword | μž…λ ₯된 λ¬Έμžκ°€ 보이도둝 λΉ„λ°€λ²ˆν˜Έ μž…λ ₯ | +| textWebEditText | μ›Ή μ–‘μ‹μœΌλ‘œ μ œκ³΅λ˜λŠ” ν…μŠ€νŠΈ μž…λ ₯ | +| textFilter | 필터링 ν•˜κΈ° μœ„ν•œ ν…μŠ€νŠΈ μž…λ ₯ | +| textPhonetic | 발음 문자 μž…λ ₯ | +| textWebEmailAddress | μ›Ή μ–‘μ‹μœΌλ‘œ μ œκ³΅λ˜λŠ” 이메일 μ£Όμ†Œ μž…λ ₯ | +| textWebPassword | μ›Ή μ–‘μ‹μœΌλ‘œ μ œκ³΅λ˜λŠ” λΉ„λ°€λ²ˆν˜Έ μž…λ ₯ | +| number | 숫자 μž…λ ₯ | +| numberSigned | λΆ€ν˜Έκ°€ μžˆλŠ” 숫자 μž…λ ₯ | +| numberDecimal | μ†Œμˆ˜μ μ΄ μž‡λŠ” 숫자 μž…λ ₯ | +| numberPassword | 숫자둜 된 λΉ„λ°€λ²ˆν˜Έ μž…λ ₯ | +| phone | β€˜-’ ν™œμš©ν•˜μ—¬ μ „ν™”λ²ˆν˜Έ μž…λ ₯ | +| datetime | λ‚ μ§œμ™€ μ‹œκ°„ μž…λ ₯ (’-β€™λ‘œ λ‚ μ§œ, β€˜:β€™λ‘œ μ‹œκ°„ ꡬ뢄) | +| date | β€˜-’ ν™œμš©ν•˜μ—¬ λ‚ μ§œ μž…λ ₯ | +| time | β€˜:’ ν™œμš©ν•˜μ—¬ μ‹œκ°„ μž…λ ₯ | +
+ +# Reference +- [Android Developers > TextView > android:inputType](https://developer.android.com/reference/android/widget/TextView#attr_android:inputType) +- [Tistory > [Android Studio] EditText - inputType μ’…λ₯˜](https://128june.tistory.com/65)