EditText, inputType मान (xml)


127

मुझे उन मूल्यों को कहां मिल InputTypeसकता है जो हो सकते हैं?

मुझे http://developer.android.com/reference/android/text/InputType.html के बारे में पता है , लेकिन लेआउट xml फ़ाइलों में मान कैसे दिखना चाहिए?


2
दिन में थोड़ी देर, लेकिन मुझे लगता है कि यह वही हो सकता है जो आप ढूंढ रहे हैं: developer.android.com/reference/android/R.attr.html
— ChrisV

3
यह वही हो सकता है जो आप के लिए देख रहे हैं: developer.android.com/reference/android/…
— रोबी मैथ्यू

जवाबों:


308

आप विभिन्न मूल्यों को निर्धारित करने के लिए ग्रहण में गुण टैब का उपयोग कर सकते हैं।

यहाँ सभी संभावित मान हैं

  • कोई नहीं
  • टेक्स्ट
  • textCapCharacters
  • textCapWords
  • textCapSentences
  • textAutoCorrect
  • textAutoComplete
  • textMultiLine
  • textImeMultiLine
  • textNoSuggestions
  • Texturi
  • textEmailAddress
  • textEmailSubject
  • textShortMessage
  • textLongMessage
  • textPersonName
  • textPostalAddress
  • textPassword
  • textVisiblePassword
  • textWebEditText
  • textFilter
  • textPhonetic
  • textWebEmailAddress
  • textWebPassword
  • संख्या
  • numberSigned
  • numberDecimal
  • numberPassword
  • फ़ोन
  • दिनांक और समय
  • तारीख
  • समय

स्पष्टीकरण के लिए यहां देखें: http://developer.android.com/reference/android/widget/TextView.html#attr_android:inputType



विवरण...?
— येसु अलेआउब

24

पूरक उत्तर

यहां बताया गया है कि इनमें से प्रत्येक इनपुट प्रकार के लिए मानक कीबोर्ड कैसे व्यवहार करता है।

यहाँ छवि विवरण दर्ज करें

देखें इस उत्तर अधिक जानकारी के लिए।


हमारी साइट का प्रयोग करके, आप स्वीकार करते हैं कि आपने हमारी Cookie Policy और निजता नीति को पढ़ और समझा लिया है।
Licensed under cc by-sa 3.0 with attribution required.