TextView.InputType Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Get the type of the editable content. -or- Set the type of the content with a constant as defined for EditorInfo#inputType
.
public virtual Android.Text.InputTypes InputType { [Android.Runtime.Register("getInputType", "()I", "GetGetInputTypeHandler")] get; [Android.Runtime.Register("setInputType", "(I)V", "GetSetInputType_IHandler")] set; }
[<get: Android.Runtime.Register("getInputType", "()I", "GetGetInputTypeHandler")>]
[<set: Android.Runtime.Register("setInputType", "(I)V", "GetSetInputType_IHandler")>]
member this.InputType : Android.Text.InputTypes with get, set
Property Value
- Attributes
Remarks
Property getter documentation:
Get the type of the editable content.
Java documentation for android.widget.TextView.getInputType()
.
Property setter documentation:
Set the type of the content with a constant as defined for EditorInfo#inputType
. This will take care of changing the key listener, by calling #setKeyListener(KeyListener)
, to match the given content type. If the given content type is EditorInfo#TYPE_NULL
then a soft keyboard will not be displayed for this text view.
Note that the maximum number of displayed lines (see #setMaxLines(int)
) will be modified if you change the EditorInfo#TYPE_TEXT_FLAG_MULTI_LINE
flag of the input type.
Java documentation for android.widget.TextView.setInputType(int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.