简体   繁体   中英

android editText multiline return to line not working with swiftkey

I have the following edit text

    <EditText
                android:id="@+id/txtMessage"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="@android:color/transparent"
                android:gravity="start"
                android:inputType="text|textMultiLine"
                android:minHeight="90dp"
                android:singleLine="false"
                android:textColor="@color/textColor" />

Every reference shows that the code is correct and in fact the text wraps to multiline. But the enter key doesn't go to the new line when i use swiftkey keyboard (Google keyboard works fine) any idea of how to solve this issue ?

Thanks

Have you considered switching to the default keyboard. It might solve your issue.

See this answer Set EditText to be Multiline(Enter is carrige return) and not display suggestions for more details.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM