Home > Back-end >  Android/Kotlin search dialog keyboard change icon
Android/Kotlin search dialog keyboard change icon

Time:11-06

I want to change the icon for the "enter" key on the search dialog's associated keyboard on Android. See the image below:

enter image description here

Instead of the arrow pointing to the right I would like another icon, e.g. search.

I use an option menu item:

<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:id="@ id/search"
        android:title="@string/search_title"
        android:icon="@drawable/ic_search"
        app:showAsAction="collapseActionView|ifRoom"
        />
</menu>

CodePudding user response:

You can try these options for changing keyboard icon

 android:imeOptions="actionGo"

OR

 android:imeOptions="actionDone"

OR

android:imeOptions="actionNext"

OR

 android:imeOptions="actionPrevious"

OR

 android:imeOptions="actionSend"

and many more you can check it out

thanks

  • Related