簡體   English   中英

在android中更改鍵盤的返回符號

[英]Change return symbol of keyboard in android

如何更改默認Android鍵盤上的return symbol

你可以通過..實現這一點。

youredittext是edittext ...

youredittext.setImeOptions(EditorInfo.IME_ACTION_SEARCH);
youredittext.setImeActionLabel......with this you can specify a string 


youredittext.setOnEditorActionListener(new TextView.OnEditorActionListener() {
@Override
public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
    if (actionId == EditorInfo.IME_ACTION_SEARCH) {
        performSearch();
        return true;
    }
    return false;
}

});

您不能必須實現自定義鍵盤。

或者你可以,但只能在root手機上。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM