久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  1. <i id='BjQma'><tr id='BjQma'><dt id='BjQma'><q id='BjQma'><span id='BjQma'><b id='BjQma'><form id='BjQma'><ins id='BjQma'></ins><ul id='BjQma'></ul><sub id='BjQma'></sub></form><legend id='BjQma'></legend><bdo id='BjQma'><pre id='BjQma'><center id='BjQma'></center></pre></bdo></b><th id='BjQma'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='BjQma'><tfoot id='BjQma'></tfoot><dl id='BjQma'><fieldset id='BjQma'></fieldset></dl></div>
  2. <tfoot id='BjQma'></tfoot>

        <bdo id='BjQma'></bdo><ul id='BjQma'></ul>
    1. <legend id='BjQma'><style id='BjQma'><dir id='BjQma'><q id='BjQma'></q></dir></style></legend>

      <small id='BjQma'></small><noframes id='BjQma'>

      Android:不知道如何使用 setImeActionLabel

      Android: Can#39;t figure how to use setImeActionLabel(Android:不知道如何使用 setImeActionLabel)
    2. <small id='eaIif'></small><noframes id='eaIif'>

      <legend id='eaIif'><style id='eaIif'><dir id='eaIif'><q id='eaIif'></q></dir></style></legend>
      <tfoot id='eaIif'></tfoot>

          <bdo id='eaIif'></bdo><ul id='eaIif'></ul>
                  <tbody id='eaIif'></tbody>

                <i id='eaIif'><tr id='eaIif'><dt id='eaIif'><q id='eaIif'><span id='eaIif'><b id='eaIif'><form id='eaIif'><ins id='eaIif'></ins><ul id='eaIif'></ul><sub id='eaIif'></sub></form><legend id='eaIif'></legend><bdo id='eaIif'><pre id='eaIif'><center id='eaIif'></center></pre></bdo></b><th id='eaIif'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='eaIif'><tfoot id='eaIif'></tfoot><dl id='eaIif'><fieldset id='eaIif'></fieldset></dl></div>
              • 本文介紹了Android:不知道如何使用 setImeActionLabel的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                問題描述

                我想要做的是更改虛擬鍵盤中顯示的默認(rèn)完成"標(biāo)簽.這是我沒有運(yùn)氣的嘗試:

                What I want to do is change the default "Done" label that appears in the virtual keyboard. Here's what I've tried without any luck:

                mSearchInput.setImeOptions(EditorInfo.IME_ACTION_DONE);
                mSearchInput.setImeActionLabel(getString(R.string.search_action_label), EditorInfo.IME_ACTION_DONE);
                

                但是,我能夠處理對(duì)該按鈕的點(diǎn)擊,方法是:

                I am able, however, to handle a click on that button, with this:

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

                目前我不知道如何更改該按鈕上的標(biāo)簽.

                I'm clueless as to how I can change the label on that button at the moment.

                推薦答案

                imeActionLabel 設(shè)置全屏 IME 模式(即當(dāng)您的手機(jī)在在風(fēng)景中).如果要更改鍵盤右下角的按鈕,可以將某些標(biāo)志傳遞給 imeOptions.

                The imeActionLabel sets the label for the button that appears on the top right on full screen IME mode (i.e., when your phone is in landscape). If you want to change the button to the bottom right of the keyboard, you can pass certain flags to imeOptions.

                據(jù)我所知,對(duì)于該按鈕,您僅限于一組特定的操作(請(qǐng)參閱 here 獲取支持的標(biāo)志的完整列表),但是由于您似乎想要一個(gè)搜索按鈕,您所要做的就是稍微調(diào)整您的第一行并使用 IME_ACTION_SEARCH:

                As far as I know, for that button you're limited to a certain set of actions (see here for a full list of supported flags), but since you seem to want a search button, all you have to do is to slightly adjust your first line and use IME_ACTION_SEARCH:

                mSearchInput.setImeOptions(EditorInfo.IME_ACTION_SEARCH);
                

                請(qǐng)注意,該按鈕的確切外觀將取決于輸入法.默認(rèn)的 Android 鍵盤顯示搜索標(biāo)志的放大鏡,而 Touch Input(HTC 的鍵盤)似乎完全不知道該標(biāo)志,仍然顯示返回按鈕.

                Mind you, the exact appearance of that button will depend on the input method. The default Android keyboard shows a magnifier for the search flag, while the Touch Input (HTC's keyboard) seems completely unaware of that flag, still showing a return button.

                這篇關(guān)于Android:不知道如何使用 setImeActionLabel的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

                相關(guān)文檔推薦

                How can I detect integer overflow on 32 bits int?(如何檢測 32 位 int 上的整數(shù)溢出?)
                Local variables before return statements, does it matter?(return 語句之前的局部變量,這有關(guān)系嗎?)
                How to convert Integer to int?(如何將整數(shù)轉(zhuǎn)換為整數(shù)?)
                How do I create an int array with randomly shuffled numbers in a given range(如何在給定范圍內(nèi)創(chuàng)建一個(gè)隨機(jī)打亂數(shù)字的 int 數(shù)組)
                Inconsistent behavior on java#39;s ==(java的行為不一致==)
                Why is Java able to store 0xff000000 as an int?(為什么 Java 能夠?qū)?0xff000000 存儲(chǔ)為 int?)
                • <i id='DwhMy'><tr id='DwhMy'><dt id='DwhMy'><q id='DwhMy'><span id='DwhMy'><b id='DwhMy'><form id='DwhMy'><ins id='DwhMy'></ins><ul id='DwhMy'></ul><sub id='DwhMy'></sub></form><legend id='DwhMy'></legend><bdo id='DwhMy'><pre id='DwhMy'><center id='DwhMy'></center></pre></bdo></b><th id='DwhMy'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='DwhMy'><tfoot id='DwhMy'></tfoot><dl id='DwhMy'><fieldset id='DwhMy'></fieldset></dl></div>
                  <legend id='DwhMy'><style id='DwhMy'><dir id='DwhMy'><q id='DwhMy'></q></dir></style></legend>

                        <tbody id='DwhMy'></tbody>
                        <bdo id='DwhMy'></bdo><ul id='DwhMy'></ul>

                      • <small id='DwhMy'></small><noframes id='DwhMy'>

                          <tfoot id='DwhMy'></tfoot>
                        • 主站蜘蛛池模板: 国产线视频精品免费观看视频 | 热久久999 | 欧美vide| 亚洲精品一级 | 激情网五月天 | 国产99久久精品一区二区永久免费 | 中文字幕视频在线 | 天堂在线免费视频 | 免费看爱爱视频 | 免费午夜电影 | 麻豆一区二区三区 | 亚洲欧美第一视频 | 精品亚洲一区二区 | 精品一区二区观看 | 久草久 | 精品欧美久久 | 欧美久久久久久 | 成人福利在线观看 | 免费看91 | 国产美女自拍视频 | 成年人在线视频 | 涩涩导航 | 黄色在线观看网站 | 伊人免费观看视频 | 国产精品3区 | 天天干天天谢 | 欧美激情精品久久久久久变态 | 中文字幕在线不卡播放 | 欧美片网站免费 | 91精品久久久久久久久久入口 | 中文字幕啪啪 | 美女视频h | 夜夜操操操 | 欧美综合久久 | 午夜婷婷激情 | 亚洲欧美在线一区 | 欧洲性生活视频 | 亚洲免费视频一区二区 | 免费在线观看一区二区 | 日韩一区二区三区在线视频 | 日韩一区二区三区在线播放 |