遠(yuǎn)程辦公”">國務(wù)院聯(lián)防聯(lián)控機(jī)制新聞發(fā)布會(huì),多次肯定“云辦公”、“遠(yuǎn)程辦公”
1358
2025-03-31
本文轉(zhuǎn)自qglaunch的文章
寫了一個(gè)布局文件 即使設(shè)置了singleLine = false; 也無效,當(dāng)然代碼中也沒對edittext做過任何處理。
1
2
3
4
5
6
7
8
9
10
11
12
最終解決方案是:inputtype 的更改
1
2
3
4
5
6
7
8
9
10
11
inputtype= “textMultiLine"
”Can be combined with text and its variations to allow multiple lines of text in the field. If this flag is not set, the text field will be constrained to a single line.
InputType總結(jié):
android:inputType=“none”–輸入普通字符
android:inputType=“text”–輸入普通字符
android:inputType=“textCapCharacters”–輸入普通字符
android:inputType=“textCapWords”–單詞首字母大小
android:inputType=“textCapSentences”–僅第一個(gè)字母大小
android:inputType=“textAutoCorrect”–前兩個(gè)自動(dòng)完成
android:inputType=“textAutoComplete”–前兩個(gè)自動(dòng)完成
android:inputType=“textMultiLine”–多行輸入
android:inputType=“textImeMultiLine”–輸入法多行(不一定支持)
android:inputType=“textNoSuggestions”–不提示
android:inputType=“textUri”–URI格式
android:inputType=“textEmailAddress”–電子郵件地址格式
android:inputType=“textEmailSubject”–郵件主題格式
android:inputType=“textShortMessage”–短消息格式
android:inputType=“textLongMessage”–長消息格式
android:inputType=“textPersonName”–人名格式
android:inputType=“textPostalAddress”–郵政格式
android:inputType=“textPassword”–密碼格式
android:inputType=“textVisiblePassword”–密碼可見格式
android:inputType=“textWebEditText”–作為網(wǎng)頁表單的文本格式
android:inputType=“textFilter”–文本篩選格式
android:inputType=“textPhonetic”–拼音輸入格式
android:inputType=“number”–數(shù)字格式
android:inputType=“numberSigned”–有符號(hào)數(shù)字格式
android:inputType=“numberDecimal”–可以帶小數(shù)點(diǎn)的浮點(diǎn)格式
android:inputType=“phone”–撥號(hào)鍵盤
android:inputType=“datetime”
android:inputType=“date”–日期鍵盤
android:inputType=“time”–時(shí)間鍵盤
當(dāng)然還可以為EditText設(shè)置多個(gè)Inputtype
1
2
3
4
5
自己的小小總結(jié):
當(dāng)inputtype = numberSigned時(shí) 鍵盤上的“-”號(hào)可以使用,當(dāng)inputtype = numberDecimal時(shí) 鍵盤上的“.”可以使用。盆友們 ,有知道當(dāng)inputtype = textCapWords時(shí) 是什么效果?
Android
版權(quán)聲明:本文內(nèi)容由網(wǎng)絡(luò)用戶投稿,版權(quán)歸原作者所有,本站不擁有其著作權(quán),亦不承擔(dān)相應(yīng)法律責(zé)任。如果您發(fā)現(xiàn)本站中有涉嫌抄襲或描述失實(shí)的內(nèi)容,請聯(lián)系我們jiasou666@gmail.com 處理,核實(shí)后本網(wǎng)站將在24小時(shí)內(nèi)刪除侵權(quán)內(nèi)容。
版權(quán)聲明:本文內(nèi)容由網(wǎng)絡(luò)用戶投稿,版權(quán)歸原作者所有,本站不擁有其著作權(quán),亦不承擔(dān)相應(yīng)法律責(zé)任。如果您發(fā)現(xiàn)本站中有涉嫌抄襲或描述失實(shí)的內(nèi)容,請聯(lián)系我們jiasou666@gmail.com 處理,核實(shí)后本網(wǎng)站將在24小時(shí)內(nèi)刪除侵權(quán)內(nèi)容。