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

Android EditText 最大長度

Android EditText Max Length(Android EditText 最大長度)
本文介紹了Android EditText 最大長度的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

限時送ChatGPT賬號..

我在 EditText 字段中設置了最大文本長度.

I set up a max length of text in an EditText field.

<EditText
            android:id="@+id/courseDescriptionField"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:inputType="textMultiLine"
            android:lines="5"
            android:maxLength="@integer/max_course_description_limit"
            android:gravity="left|top" >
        </EditText>

然而,對我來說問題是,文本在 140 個字符之后出現,但它仍然繼續輸入,除了文本沒有出現,但是,它確實出現在緩沖區"中(意思是建議事情)如果這就是你所說的.

The problem for me however is, that, text STOPS appearing after 140 characters, but it still continues to type, except that text just doesn't appear, but however, it does appear in the "buffer" (meaning the suggestion thing) if that's what you would call it.

附帶說明,我正在使用 TextWatcher 來跟蹤限制.有沒有辦法完全限制文本的數量,這樣當有 140 個字符時,按下退格/刪除以外的東西時什么都不會發生?

As a side note, I am using a TextWatcher to keep track of the limit. Is there any way to completely limit the amount of text, so that when there are 140 characters, nothing happens when something other than backspace/delete is pressed?

推薦答案

限制Android中EditText的文本長度

使用 android:maxLength="140"

應該可以.:)

希望有幫助

這篇關于Android EditText 最大長度的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

相關文檔推薦

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 位小數的數字)
Changing where cursor starts in an expanded EditText(更改光標在展開的 EditText 中的開始位置)
EditText, adjustPan, ScrollView issue in android(android中的EditText,adjustPan,ScrollView問題)
主站蜘蛛池模板: 久久久久se| 国产成人在线视频播放 | 精品国产成人 | a黄视频 | 91精品国产91久久久久久丝袜 | 欧美精品一区二区三区一线天视频 | 色资源av| 日本亚洲一区 | 91看片网 | 久久久久久综合 | 精品国产乱码久久久久久蜜柚 | 欧美日韩在线观看一区 | 久久久久电影 | 欧美在线a | 亚洲最新在线 | 国产精品久久久久aaaa樱花 | 国产农村一级片 | 免费在线看黄视频 | 99在线精品视频 | 91精品国产日韩91久久久久久 | 91精品导航 | 凹凸日日摸日日碰夜夜 | 亚洲国产免费 | 91在线视频| 日韩性生活网 | 欧美日韩在线一区二区三区 | 亚洲一区二区三区四区五区中文 | 精品久久久久久久久久久久 | 日韩中文一区二区三区 | 欧美xxxⅹ性欧美大片 | 91素人| 一区二区三区欧美在线观看 | 久久99视频这里只有精品 | 91精品国产综合久久久久蜜臀 | 99国产精品久久久久久久 | 亚洲精品在线免费观看视频 | 色久电影 | 久久久久免费精品国产 | 国产精久久久久久久 | 国产精品久久久久久久久免费软件 | 欧美日韩三区 |