how to add Go button in android SoftKeyBoard and its functionality?

前端 未结 4 753
渐次进展
渐次进展 2021-02-06 04:26

i want to put \"Go\" button in android appliation softkeyboard

for search and other related scenarios can any one guide me how to achieve this? with example.

any

4条回答
  •  梦毁少年i
    2021-02-06 05:14

    If your question is that you have an EditText or editable TextView, and you want the action right button on the softkeyboard to read "Go" then add this attribute to your EditText/TextView

    android:imeActionLabel="actionGo"
    

    note that it will also have to be a single line TextView as otherwise the action button will be a carriage return selector (an arrow).

    android:singleLine="true" 
    

提交回复
热议问题