가질 수있는 가치를 어디에서 찾을 InputType
수 있습니까?
http://developer.android.com/reference/android/text/InputType.html 알고 있지만 레이아웃 xml 파일에서 값은 어떻게 표시됩니까?
답변
이클립스의 속성 탭을 사용하여 다양한 값을 설정할 수 있습니다.
여기에 가능한 모든 값이 있습니다
- none
- 본문
- textCapCharacters
- textCapWords
- textCapSentences
- textAutoCorrect
- textAutoComplete
- textMultiLine
- textImeMultiLine
- textNoSuggestions
- textUri
- textEmailAddress
- textEmailSubject
- textShortMessage
- textLongMessage
- textPersonName
- textPostalAddress
- textPassword
- textVisiblePassword
- textWebEditText
- textFilter
- 텍스트
- textWebEmailAddress
- textWebPassword
- 번호
- numberSigned
- 십진수
- numberPassword
- 전화
- 날짜 시간
- 데이트
- 시각
설명을 보려면 여기를 확인하십시오 : http://developer.android.com/reference/android/widget/TextView.html#attr_android:inputType
답변
답변
android:inputMethod
더 이상 사용되지 않습니다. 대신 다음을 사용하십시오 inputType
.
android:inputType="numberPassword"