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

Android edittext 鍵返回到下一個(gè)文本

Android edittext key return goes to next text(Android edittext 鍵返回到下一個(gè)文本)
本文介紹了Android edittext 鍵返回到下一個(gè)文本的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

問(wèn)題描述

限時(shí)送ChatGPT賬號(hào)..

我有一系列 EditText 條目并且想要它,因此當(dāng)用戶按下回車(chē)鍵時(shí),它將轉(zhuǎn)到下一個(gè) EditText.我知道如何一次執(zhí)行此操作,但是有沒(méi)有辦法告訴所有的 edittext 控件使用檢查鍵輸入和前進(jìn)光標(biāo)的相同功能.為每個(gè) EditText 設(shè)置一個(gè)函數(shù)似乎有點(diǎn)瘋狂

I have a series of EditText entries and would like it so when the user hits the enter key it will go to the next Editext. I know how do this one at a time but is there a way to tell all of the edittext controls to use the same function that checks the key entry and advances the cursor. It seems kind of crazy to have one function for each of the EditTexts

推薦答案

比嗅探鍵簡(jiǎn)單得多:嘗試設(shè)置 android:singleLine="true"android:imeOptions="actionNext" (至少對(duì)于單行輸入文本視圖).閱讀有關(guān) TextView 的 Android 文檔 中的更多信息.

Much simpler than sniffing keys: try setting android:singleLine="true" and android:imeOptions="actionNext" (at least for single-line entry textviews). Read more in the Android documentation for TextView.

更新: singleLine 已棄用 現(xiàn)在,但您可以忽略它.這是可編輯文本的默認(rèn)行為,只要您沒(méi)有明確設(shè)置 android:inputType="textMultiLine",并且 inputType 會(huì)覆蓋建議的 singleLine 無(wú)論如何替換 maxLines="1" 為可編輯文本.

Update: singleLine is deprecated now, but you can leave it out. It's the default behavior for editable text as long as you don't explicitly set android:inputType="textMultiLine", and inputType overrides the suggested singleLine replacement of maxLines="1" for editable text anyways.

這篇關(guān)于Android edittext 鍵返回到下一個(gè)文本的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

相關(guān)文檔推薦

Cut, copy, paste in android(在android中剪切、復(fù)制、粘貼)
android EditText blends into background(android EditText 融入背景)
Change Line Color of EditText - Android(更改 EditText 的線條顏色 - Android)
EditText showing numbers with 2 decimals at all times(EditText 始終顯示帶 2 位小數(shù)的數(shù)字)
Changing where cursor starts in an expanded EditText(更改光標(biāo)在展開(kāi)的 EditText 中的開(kāi)始位置)
EditText, adjustPan, ScrollView issue in android(android中的EditText,adjustPan,ScrollView問(wèn)題)
主站蜘蛛池模板: 中文字幕日韩在线观看 | 91av国产在线视频 | 国产精品成人一区二区三区 | av毛片 | 91av视频在线播放 | 国产精品久久欧美久久一区 | 国产精品久久久久久久久久 | 亚洲精品电影在线观看 | 成人性生交大片免费看r链接 | 成人午夜电影网 | 啪啪毛片| 色桃网 | 久久午夜精品福利一区二区 | 中文字幕亚洲国产 | 欧美精品a∨在线观看不卡 国产精品久久国产精品 | 亚洲成人一区二区 | 一级片视频免费观看 | 国产精品国产三级国产a | 精品一区电影 | 69av片| 国产精品久久久爽爽爽麻豆色哟哟 | 国产在线观 | 亚洲日本一区二区三区四区 | 亚洲视频一区在线播放 | 日韩欧美二区 | 91久久婷婷 | 免费能直接在线观看黄的视频 | 91精品国产一区二区三区 | 人人九九精| 性色在线 | 日韩在线免费视频 | 亚洲不卡在线观看 | 伊人伊成久久人综合网站 | 久久久精品视频一区二区三区 | 国产黄色大片网站 | 精品中文字幕视频 | 欧洲色| 99久久精品国产麻豆演员表 | 亚洲国产精品va在线看黑人 | 不卡视频一区二区三区 | 毛片一区二区三区 |