Android----Input Mode settings

Source: Internet
Author: User

Java code
    1. Parameters of the InputType:
Java code
    1. Usage: ((EditText) Findviewbyid (R.id.edit)). Setinputtype (inputtype.*);
Java code
  1. int Type_class_datetime CLASS for dates and times .
  2. int Type_class_number CLASS for numeric text.
  3. int Type_class_phone CLASS for a PHONE number.
  4. int Type_class_text CLASS for normal TEXT.
  5. int type_datetime_variation_date Default Variation of type_class_datetime:allows entering only a DATE.
  6. int type_datetime_variation_normal Default Variation of type_class_datetime:allows entering both a date and time.  int type_datetime_variation_time Default Variation of type_class_datetime:allows entering only a time.
  7. int Type_mask_class MASK of bits that determine the overall CLASS of text being given.
  8. int Type_mask_flags MASK of bits that provide addition bit FLAGS of options.
  9. int type_mask_variation MASK of bits that determine the variation of the base content class.
  10. int Type_null Special content type for when no explicit (explicit) type has been specified.
  11. int Type_number_flag_decimal FLAG of type_class_number:the number is decimal, allowing a decimal point to provide   Fractional values.
  12. int type_number_flag_signed FLAG of type_class_number:the number is signed, allowing a positive or negative sign   At the start.
  13. int type_text_flag_auto_complete FLAG for type_class_text:the TEXT Editor is performing auto-completion of the   Text being entered based on its own semantics, which it would present to the user as they type.
  14. int type_text_flag_auto_correct FLAG for type_class_text:the user was entering Free-form TEXT that should has   Auto-correction applied to it.
  15. int type_text_flag_cap_characters FLAG for type_class_text:capitalize all characters.
  16. int type_text_flag_cap_sentences FLAG for type_class_text:capitalize first character of each sentence.
  17. int type_text_flag_cap_words FLAG for type_class_text:capitalize first character of all WORDS.
  18. int type_text_flag_ime_multi_line FLAG for type_class_text:the regular TEXT view associated with this should   Not being multi-line, but when a fullscreen input method was providing text it should use multiple lines if it can.
  19. int type_text_flag_multi_line FLAG for type_class_text:multiple lines of TEXT can is entered into the field.
  20. int type_text_flag_no_suggestions FLAG for type_class_text:the Input method does not need to display any Dictiona   Ry-based candidates.
  21. int type_text_variation_email_address Variation of type_class_text:entering an e-mail ADDRESS.
  22. int Type_text_variation_email_subject Variation of type_class_text:entering the SUBJECT line of an e-mail.
  23. int type_text_variation_filter Variation of type_class_text:entering TEXT to FILTER contents of a list etc.
  24. int type_text_variation_long_message Variation of type_class_text:entering The content of a LONG, possibly formal   Message such as the body of an e-mail.
  25. int type_text_variation_normal Default Variation of Type_class_text:plain old NORMAL TEXT.
  26. int Type_text_variation_password Variation of type_class_text:entering a PASSWORD.
  27. int Type_text_variation_person_name Variation of type_class_text:entering The NAME of a person.
  28. int type_text_variation_phonetic Variation of type_class_text:entering TEXT for PHONETIC pronunciation, such as a   Phonetic Name field in Contacts.
  29. int type_text_variation_postal_address Variation of type_class_text:entering a POSTAL mailing ADDRESS.
  30. int type_text_variation_short_message Variation of type_class_text:entering a short , possibly informal MESSAGE s   Uch as an instant message or a text message.
  31. int Type_text_variation_uri Variation of type_class_text:entering a URI.
  32. int Type_text_variation_visible_password Variation of type_class_text:entering a PASSWORD, which should is VISIBLE to   The user.
  33. int Type_text_variation_web_edit_text Variation of type_class_text:entering TEXT inside of a WEB form. EditText et = (EditText) Findviewbyid (r.id.et); Et.setinputtype (Inputtype.type_class_number);   Type_class_datetime CLASS for dates and times .
  34. int Type_class_number CLASS for numeric text.
  35. int Type_class_phone CLASS for a PHONE number.
  36. int Type_class_text CLASS for normal TEXT.
  37. int type_datetime_variation_date Default Variation of type_class_datetime:allows entering only a DATE.
  38. int type_datetime_variation_normal Default Variation of type_class_datetime:allows entering both a date and time. int type_datetime_variation_time Default Variation of type_class_datetime:allows entering only a time.
  39. int Type_mask_class MASK of bits that determine the overall CLASS of text being given.
  40. int Type_mask_flags MASK of bits that provide addition bit FLAGS of options.
  41. int type_mask_variation MASK of bits that determine the variation of the base content class.
  42. int Type_null Special content type for if no explicit type has been specified.
  43. int Type_number_flag_decimal FLAG of type_class_number:the number is decimal, allowing a decimal point to provide FRA   Ctional values.
  44. int type_number_flag_signed FLAG of type_class_number:the number is signed, allowing a positive or negative sign at t   He start.
  45. int type_text_flag_auto_complete FLAG for type_class_text:the TEXT Editor is performing auto-completion of the Te   XT being entered based on its own semantics, which it would present to the user as they type.
  46. int type_text_flag_auto_correct FLAG for type_class_text:the user was entering Free-form TEXT that should has AUT   O-correction applied to it.
  47. int type_text_flag_cap_characters FLAG for type_class_text:capitalize all characters.
  48. int type_text_flag_cap_sentences FLAG for type_class_text:capitalize first character of each sentence.
  49. int type_text_flag_cap_words FLAG for type_class_text:capitalize first character of all WORDS.
  50. int type_text_flag_ime_multi_line FLAG for type_class_text:the regular TEXT view associated with this should   Not being multi-line, but when a fullscreen input method was providing text it should use multiple lines if it can.
  51. int type_text_flag_multi_line FLAG for type_class_text:multiple lines of TEXT can is entered into the field.
  52. int type_text_flag_no_suggestions FLAG for type_class_text:the Input method does not need to display any Dictiona   Ry-based candidates.
  53. int type_text_variation_email_address Variation of type_class_text:entering an e-mail ADDRESS.
  54. int Type_text_variation_email_subject Variation of type_class_text:entering the SUBJECT line of an e-mail.
  55. int type_text_variation_filter Variation of type_class_text:entering TEXT to FILTER contents of a list etc.
  56. int type_text_variation_long_message Variation of type_class_text:entering The content of a LONG, possibly formal   Message such as the body of an e-mail.
  57. int type_text_variation_normal Default Variation of Type_class_text:plain old NORMAL TEXT.
  58. int Type_text_variation_password Variation of type_class_text:entering a PASSWORD.
  59. int Type_text_variation_person_name Variation of type_class_text:entering The NAME of a person.
  60. int type_text_variation_phonetic Variation of type_class_text:entering TEXT for PHONETIC pronunciation, such as a   Phonetic Name field in Contacts.
  61. int type_text_variation_postal_address Variation of type_class_text:entering a POSTAL mailing ADDRESS.
  62. int type_text_variation_short_message Variation of type_class_text:entering a short , possibly informal MESSAGE s   Uch as an instant message or a text message.
  63. int Type_text_variation_uri Variation of type_class_text:entering a URI.
  64. int Type_text_variation_visible_password Variation of type_class_text:entering a PASSWORD, which should is VISIBLE to   The user.
  65. int Type_text_variation_web_edit_text Variation of type_class_text:entering TEXT inside of a WEB form.

Android----Input Mode settings

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.