숨참고 개발다이브

[안드로이드] EditText 키보드 다음/완료 등 엔터 버튼 변경 본문

개발/Android

[안드로이드] EditText 키보드 다음/완료 등 엔터 버튼 변경

사라 Sarah 2019. 1. 3. 15:31
728x90

XML 에서 EditText에 해당 코드 추가

singleLine 이 적용되어야 imeOptions 가 동작한다.

android:imeOptions="actionNext"
android:singleLine="true"

 

 

 

actionNext = 다음

 

 

 

actionDone = 완료

 

 

 

actionGo = 이동

 

 

 

actionSearch = 검색

 

 

 

actionSend = 보내기

 

 

 

actionPrevious = 이전

300x250
Comments