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

Android edittext 鍵返回到下一個文本

Android edittext key return goes to next text(Android edittext 鍵返回到下一個文本)
本文介紹了Android edittext 鍵返回到下一個文本的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

限時送ChatGPT賬號..

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

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

推薦答案

比嗅探鍵簡單得多:嘗試設置 android:singleLine="true"android:imeOptions="actionNext" (至少對于單行輸入文本視圖).閱讀有關 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)在,但您可以忽略它.這是可編輯文本的默認行為,只要您沒有明確設置 android:inputType="textMultiLine",并且 inputType 會覆蓋建議的 singleLine 無論如何替換 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.

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

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

相關文檔推薦

Cut, copy, paste in android(在android中剪切、復制、粘貼)
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(更改光標在展開的 EditText 中的開始位置)
EditText, adjustPan, ScrollView issue in android(android中的EditText,adjustPan,ScrollView問題)
主站蜘蛛池模板: 国产色婷婷精品综合在线播放 | 黄片毛片 | 国产一区二区三区免费视频 | 一区二区三区网站 | 国产一区视频在线 | 欧美一区二区三区在线观看视频 | 97超碰成人 | 日韩视频一区二区三区 | 一区二区不卡 | 亚洲人精品午夜 | 中文日韩在线视频 | 日韩一区二区免费视频 | 精品成人在线观看 | 91精品国产色综合久久不卡98口 | 欧美日韩国产精品一区二区 | 九色国产 | 日韩福利视频 | 日韩精品在线免费 | 国产激情在线观看视频 | 嫩草视频在线 | 久久国产精彩视频 | 国产日韩免费视频 | 久久婷婷香蕉热狠狠综合 | 五月天国产视频 | 999精品视频 | 毛片软件 | 精品久久香蕉国产线看观看亚洲 | 久久久久网站 | 琪琪午夜伦伦电影福利片 | 超碰97av| 欧美日韩精品一区二区 | 国产精品久久久久免费 | 伊人久久综合 | 久久久91精品国产一区二区精品 | 日韩一区二区在线视频 | 国产精品日本一区二区不卡视频 | 久久久久国产一区二区三区 | 91麻豆精品国产91久久久更新资源速度超快 | 久久精品国产a三级三级三级 | 91高清免费观看 | 日韩在线视频一区 |