put this properties in your edittext
android:inputType="textShortMessage|textAutoCorrect|textCapSentences|textMultiLine"
android:imeOptions="actionSend|flagNoEnterAction"
check the android stock sms app source
this work with swiftkey and google keyboard