轉(zhuǎn)2:EditView:inputType常用取值

常常不知道inputType要如何設(shè)置才能滿(mǎn)足需求,剛好在其他地方看到,轉(zhuǎn)與此,后續(xù)方便編碼:


//文本類(lèi)型,多為大寫(xiě)、小寫(xiě)和數(shù)字符號(hào)。

android:inputType="none"http://輸入普通字符

android:inputType="text"http://輸入普通字符

android:inputType="textCapCharacters"http://輸入普通字符

android:inputType="textCapWords"http://單詞首字母大小

android:inputType="textCapSentences"http://僅第一個(gè)字母大小

android:inputType="textAutoCorrect"http://前兩個(gè)自動(dòng)完成

android:inputType="textAutoComplete"http://前兩個(gè)自動(dòng)完成

android:inputType="textMultiLine"http://多行輸入

android:inputType="textImeMultiLine"http://輸入法多行(不一定支持)

android:inputType="textNoSuggestions"http://不提示

android:inputType="textUri"http://URI格式

android:inputType="textEmailAddress"http://電子郵件地址格式

android:inputType="textEmailSubject"http://郵件主題格式

android:inputType="textShortMessage"http://短消息格式

android:inputType="textLongMessage"http://長(zhǎng)消息格式

android:inputType="textPersonName"http://人名格式

android:inputType="textPostalAddress"http://郵政格式

android:inputType="textPassword"http://密碼格式

android:inputType="textVisiblePassword"http://密碼可見(jiàn)格式

android:inputType="textWebEditText"http://作為網(wǎng)頁(yè)表單的文本格式

android:inputType="textFilter"http://文本篩選格式

android:inputType="textPhonetic"http://拼音輸入格式

//數(shù)值類(lèi)型

android:inputType="number"http://數(shù)字格式

android:inputType="numberSigned"http://有符號(hào)數(shù)字格式

android:inputType="numberDecimal"http://可以帶小數(shù)點(diǎn)的浮點(diǎn)格式

android:inputType="phone"http://撥號(hào)鍵盤(pán)

android:inputType="datetime"http://日期+時(shí)間格式

android:inputType="date"http://日期鍵盤(pán)

android:inputType="time"http://時(shí)間鍵盤(pán)

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • Android 自定義View的各種姿勢(shì)1 Activity的顯示之ViewRootImpl詳解 Activity...
    passiontim閱讀 178,745評(píng)論 25 709
  • 以下知識(shí)點(diǎn)為常用且不熟知的一些知識(shí)點(diǎn) 1.TextView 1.1 shapeDrawable知識(shí)點(diǎn) 1.2 dr...
    侯蛋蛋_閱讀 3,605評(píng)論 0 5
  • 今天早上的速寫(xiě)又把頭畫(huà)小了嗚,其實(shí)畫(huà)的過(guò)程中已經(jīng)發(fā)現(xiàn),但是沒(méi)有多余的時(shí)間去修改。以后一定記得現(xiàn)打型再去畫(huà)五官?。?..
    柳三更閱讀 276評(píng)論 0 0
  • 窗外雨下不停的時(shí)候容易失眠嗎 曾經(jīng)奮力爭(zhēng)取但無(wú)聲的事還有個(gè)了結(jié)或消去不甘嗎 想自己做的錯(cuò)事蠢事后悔事種種不成熟的事...
    zka未來(lái)可期閱讀 387評(píng)論 0 0
  • “互聯(lián)網(wǎng)+“已然不是私企大佬們的戰(zhàn)場(chǎng)了,國(guó)企央企也被逼擁抱了互聯(lián)網(wǎng)。主動(dòng)是為了成長(zhǎng),而被動(dòng)卻是為了生存!那么如何“...
    蘇九a閱讀 165評(píng)論 2 1

友情鏈接更多精彩內(nèi)容