안드로이드 EditText의 imeOptions를 actionDone 또는 actionSend로 처리하였을 경우, 멀티라인이 되지 않고 1열로 쭉 써지는 현상이 발생하여 당황했다. 그럴 땐 가로 스크롤을 없애면 된다.
your_layout.xml
<EditText
android:inputType="text"
android:imeOptions="actionSend"
/>
your.kt
editText.setHorizontallyScrolling(false)
editText.maxLines = 3
'android' 카테고리의 다른 글
[kotlin] android EditText setMaxLength Programmatically (0) | 2021.06.30 |
---|---|
[android] Google play HostnameVerifier issue (0) | 2021.06.25 |
[android] 방해금지모드 확인 (Do not disturb mode) (0) | 2021.06.15 |
[kotlin] android spinner setOnItemSelectedListener (0) | 2021.06.14 |
[android] DialogFragment keyEvent (키 이벤트 수신) (0) | 2021.06.04 |