久久久久久久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問題)
主站蜘蛛池模板: av在线亚洲天堂 | 玩丰满女领导对白露脸hd | аⅴ资源新版在线天堂 | 中文字幕av亚洲精品一部二部 | 99免费在线观看视频 | 久久免费视频在线 | 91手机精品视频 | 国产精品一区二区福利视频 | 91在线视频观看 | 亚洲国产激情 | 在线免费看黄 | 超碰人人爱 | 美女天天操 | 涩涩视频大全 | 亚洲国产一区在线 | 午夜视频在线 | 亚洲精品一区二区冲田杏梨 | 亚洲一区二区日韩 | 日本午夜免费福利视频 | 国产视频综合 | 欧美视频在线看 | 中文字幕av在线 | 国产精品一区二区视频 | 日本超碰 | 亚洲成av人片在线观看无码 | 蜜桃视频在线观看免费视频网站www | 久久久网 | 中文字幕av在线一二三区 | 久久99精品国产 | 精品视频在线观看 | 亚洲国产精品suv | 亚洲视频欧美视频 | 秋霞电影院午夜伦 | 91国内精品久久 | 亚洲欧美日韩国产综合 | 国产丝袜一区二区三区免费视频 | 羞羞的视频免费看 | 午夜影院在线观看视频 | av网站免费 | 91国内精品| 国产精品91网站 |