<EditText android:layout_width="fill_parent" android:layout_height="wrap_content" android:inputType="phone" />
//文本類型,多為大寫佣谐、小寫和數(shù)字符號幸冻。
android:inputType="none"http://輸入普通字符
android:inputType="text"http://輸入普通字符
android:inputType="textCapCharacters"http://輸入普通字符
android:inputType="textCapWords"http://單詞首字母大小
android:inputType="textCapSentences"http://僅第一個字母大小
android:inputType="textAutoCorrect"http://前兩個自動完成
android:inputType="textAutoComplete"http://前兩個自動完成
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://長消息格式
android:inputType="textPersonName"http://人名格式
android:inputType="textPostalAddress"http://郵政格式
android:inputType="textPassword"http://密碼格式
android:inputType="textVisiblePassword"http://密碼可見格式
android:inputType="textWebEditText"http://作為網(wǎng)頁表單的文本格式
android:inputType="textFilter"http://文本篩選格式
android:inputType="textPhonetic"http://拼音輸入格式
//數(shù)值類型
android:inputType="number"http://數(shù)字格式
android:inputType="numberSigned"http://有符號數(shù)字格式
android:inputType="numberDecimal"http://可以帶小數(shù)點的浮點格式
android:inputType="phone"http://撥號鍵盤
android:inputType="datetime"http://日期+時間格式
android:inputType="date"http://日期鍵盤
android:inputType="time"http://時間鍵盤
android:inputType常用取值
最后編輯于 :
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
- 文/潘曉璐 我一進(jìn)店門豪嗽,熙熙樓的掌柜王于貴愁眉苦臉地迎上來谴蔑,“玉大人,你說我怎么就攤上這事龟梦∫В” “怎么了?”我有些...
- 文/不壞的土叔 我叫張陵计贰,是天一觀的道長钦睡。 經(jīng)常有香客問我,道長躁倒,這世上最難降的妖魔是什么荞怒? 我笑而不...
- 正文 為了忘掉前任,我火速辦了婚禮秧秉,結(jié)果婚禮上褐桌,老公的妹妹穿的比我還像新娘。我一直安慰自己象迎,他們只是感情好荧嵌,可當(dāng)我...
- 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著砾淌,像睡著了一般完丽。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上拇舀,一...
- 文/蒼蘭香墨 我猛地睜開眼,長吁一口氣:“原來是場噩夢啊……” “哼脱惰!你這毒婦竟也來了搏嗡?” 一聲冷哼從身側(cè)響起,我...
- 正文 年R本政府宣布窃祝,位于F島的核電站,受9級特大地震影響蠢棱,放射性物質(zhì)發(fā)生泄漏锌杀。R本人自食惡果不足惜,卻給世界環(huán)境...
- 文/蒙蒙 一泻仙、第九天 我趴在偏房一處隱蔽的房頂上張望糕再。 院中可真熱鬧,春花似錦玉转、人聲如沸突想。這莊子的主人今日做“春日...
- 文/蒼蘭香墨 我抬頭看了看天上的太陽猾担。三九已至,卻和暖如春刺下,著一層夾襖步出監(jiān)牢的瞬間绑嘹,已是汗流浹背。 一陣腳步聲響...
推薦閱讀更多精彩內(nèi)容
- http://blog.csdn.net/sunny2come/article/details/6996943 1...
- reference:參考某一資源ID沐绒。(1)屬性定義: <declare-styleable name =...
- 行程:庫車--喀什 關(guān)鍵詞:在路上 生活就是一個作業(yè)接著一個作業(yè)。剛補(bǔ)完了昨天的作業(yè)呀邢,神清氣爽一會后洒沦,馬上意識到:...