개발일지

삽질 - TextInputLayout AutoCompleteTextView setSelection 본문

삽질

삽질 - TextInputLayout AutoCompleteTextView setSelection

강태종 2021. 3. 10. 14:02

TextInputLayout을 사용할 때 ExposedDropdownMenu와 MaterialAutoCompleteTextView를 사용하여DropdownMenu를 사용할 때 setSelection을 통해 코드로 Item을 선택할 경우 IndexBoundException이 발생한다.

=> setText를 사용한다.

Comments