Livecode Wiki
Advertisement

This widget permits you to create and manipulate a native filed on Android without using MobileControlCreate or MobileControlSet.

You can use this widget also for password fields.

Messages[]

Properties[]

  • autoCapitalizationType: It can be:
    • "none": the shift-key is never automatically enabled
    • "words": the shift-key is enabled at the start of words
    • "sentences": the shift-key is enabled at the start of sentences
    • "all characters": the shift-key is enabled at the start of each character
  • autoCorrectionType: It can be:
    • "default": use the appropriate auto-correct behavior for the current script system
    • "no": disable auto-correct behavior
    • "yes": enable auto-correct behavior
  • contentType: it can be:
    • "plain": plain, unstyled text
    • "password": plain text displayed in the standard password style
  • dataDetectorTypes: It can be:
    • "phone number": Phone numbers should be clickable
    • "link": Links should be clickable
    • "email": Email addresses should be clickable
    • "address": Addresses should be clickable
  • editable: It can be true or false. Use the editable property to allow or disallow the user to enter text in the field.
  • Enabled
  • fieldTextColor: change the color of the text of the field widget.
  • Focused: It can be true or false.
  • keyboardType: It can be:
    • "default": the default keyboard
    • "alphabet": the alphabetic keyboard
    • "numeric": the numeric keyboard with punctuation
    • "URL": the URL entry keyboard
    • "number": the number pad keyboard
    • "phone": the phone number pad keyboard
    • "contact": the phone contact pad keyboard
    • "email": the email keyboard
    • "decimal": the decimal numeric pad keyboard
  • multiline: Use the multiline property to allow or disallow the user to enter multiple lines of text in the field. It can be true or false.
  • returnKeyType: it can be:
    • "default": the normal return key action
    • "none": no return key action
    • "go": take the user to the target of the text they typed
    • "next": move to the next field that will accept text
    • "previous": move to the previous field that will accept text
    • "search": take the user to the results of searching for the text they have typed
    • "send": deliver the text to its target
    • "done": close IME
  • scrollingEnabled: set the scrollingEnabled property to allow or disallow the user to scroll the field. It can be true or false.
  • selectedRange: Use the selectedRange property to determine the start index and the length of the text that is to appear as selected, like "1,20".
  • Text
  • TextAlign
  • verticalTextAlign: It can be:
    • "top": Top-aligned text
    • "middle": Middle-aligned text
    • "bottom": Bottom-aligned text
Advertisement