IT. Expert System.

Android Reference

EditorInfo


android.view.inputmethod

Class EditorInfo

  • All Implemented Interfaces:
    Parcelable, InputType


    public class EditorInfo
    extends Object
    implements InputType, Parcelable
    An EditorInfo describes several attributes of a text editing object that an input method is communicating with (typically an EditText), most importantly the type of text content it contains.
    • Field Detail

      • IME_MASK_ACTION

        public static final int IME_MASK_ACTION
        Set of bits in imeOptions that provide alternative actions associated with the "enter" key. This both helps the IME provide better feedback about what the enter key will do, and also allows it to provide alternative mechanisms for providing that command.
        See Also:
        Constant Field Values
      • IME_ACTION_UNSPECIFIED

        public static final int IME_ACTION_UNSPECIFIED
        Bits of IME_MASK_ACTION: no specific action has been associated with this editor, let the editor come up with its own if it can.
        See Also:
        Constant Field Values
      • IME_ACTION_GO

        public static final int IME_ACTION_GO
        Bits of IME_MASK_ACTION: the action key performs a "go" operation to take the user to the target of the text they typed. Typically used, for example, when entering a URL.
        See Also:
        Constant Field Values
      • IME_ACTION_SEARCH

        public static final int IME_ACTION_SEARCH
        Bits of IME_MASK_ACTION: the action key performs a "search" operation, taking the user to the results of searching for the text the have typed (in whatever context is appropriate).
        See Also:
        Constant Field Values
      • IME_ACTION_SEND

        public static final int IME_ACTION_SEND
        Bits of IME_MASK_ACTION: the action key performs a "send" operation, delivering the text to its target. This is typically used when composing a message.
        See Also:
        Constant Field Values
      • IME_ACTION_NEXT

        public static final int IME_ACTION_NEXT
        Bits of IME_MASK_ACTION: the action key performs a "next" operation, taking the user to the next field that will accept text.
        See Also:
        Constant Field Values
      • IME_ACTION_DONE

        public static final int IME_ACTION_DONE
        Bits of IME_MASK_ACTION: the action key performs a "done" operation, typically meaning the IME will be closed.
        See Also:
        Constant Field Values
      • IME_FLAG_NO_FULLSCREEN

        public static final int IME_FLAG_NO_FULLSCREEN
        Flag of imeOptions: used to request that the IME never go into fullscreen mode. Applications need to be aware that the flag is not a guarantee, and not all IMEs will respect it.
        See Also:
        Constant Field Values
      • IME_FLAG_NAVIGATE_NEXT

        public static final int IME_FLAG_NAVIGATE_NEXT
        Flag of imeOptions: used to specify that there is something interesting that a forward navigation can focus on. This is like using IME_ACTION_NEXT, except allows the IME to be multiline (with an enter key) as well as provide forward navigation. Note that some IMEs may not be able to do this, especially when running on a small screen where there is little space. In that case it does not need to present a UI for this option. Like IME_ACTION_NEXT, if the user selects the IME's facility to forward navigate, this will show up in the application at InputConnection.performEditorAction(int).
        See Also:
        Constant Field Values
      • IME_FLAG_NO_EXTRACT_UI

        public static final int IME_FLAG_NO_EXTRACT_UI
        Flag of imeOptions: used to specify that the IME does not need to show its extracted text UI. For input methods that may be fullscreen, often when in landscape mode, this allows them to be smaller and let part of the application be shown behind. Though there will likely be limited access to the application available from the user, it can make the experience of a (mostly) fullscreen IME less jarring. Note that when this flag is specified the IME may not be set up to be able to display text, so it should only be used in situations where this is not needed.
        See Also:
        Constant Field Values
      • IME_FLAG_NO_ACCESSORY_ACTION

        public static final int IME_FLAG_NO_ACCESSORY_ACTION
        Flag of imeOptions: used in conjunction with IME_MASK_ACTION, this indicates that the action should not be available as an accessory button when the input method is full-screen. Note that by setting this flag, there can be cases where the action is simply never available to the user. Setting this generally means that you think showing text being edited is more important than the action you have supplied.
        See Also:
        Constant Field Values
      • IME_FLAG_NO_ENTER_ACTION

        public static final int IME_FLAG_NO_ENTER_ACTION
        Flag of imeOptions: used in conjunction with IME_MASK_ACTION, this indicates that the action should not be available in-line as a replacement for "enter" key. Typically this is because the action has such a significant impact or is not recoverable enough that accidentally hitting it should be avoided, such as sending a message. Note that TextView will automatically set this flag for you on multi-line text views.
        See Also:
        Constant Field Values
      • IME_FLAG_FORCE_ASCII

        public static final int IME_FLAG_FORCE_ASCII
        Flag of imeOptions: used to request that the IME is capable of inputting ASCII characters. The intention of this flag is to ensure that the user can type Roman alphabet characters in a TextView used for, typically, account ID or password input. It is expected that IMEs normally are able to input ASCII even without being told so (such IMEs already respect this flag in a sense), but there could be some cases they aren't when, for instance, only non-ASCII input languagaes like Arabic, Greek, Hebrew, Russian are enabled in the IME. Applications need to be aware that the flag is not a guarantee, and not all IMEs will respect it. However, it is strongly recommended for IME authors to respect this flag especially when their IME could end up with a state that has only non-ASCII input languages enabled.
        See Also:
        Constant Field Values
      • imeOptions

        public int imeOptions
        Extended type information for the editor, to help the IME better integrate with it.
      • privateImeOptions

        public String privateImeOptions
        A string supplying additional information options that are private to a particular IME implementation. The string must be scoped to a package owned by the implementation, to ensure there are no conflicts between implementations, but other than that you can put whatever you want in it to communicate with the IME. For example, you could have a string that supplies an argument like "com.example.myapp.SpecialMode=3". This field is can be filled in from the android.R.attr#privateImeOptions attribute of a TextView.
      • actionLabel

        public CharSequence actionLabel
        In some cases an IME may be able to display an arbitrary label for a command the user can perform, which you can specify here. You can not count on this being used.
      • initialSelStart

        public int initialSelStart
        The text offset of the start of the selection at the time editing began; -1 if not known.
      • initialSelEnd

        public int initialSelEnd
        The text offset of the end of the selection at the time editing began; -1 if not known.
      • hintText

        public CharSequence hintText
        The "hint" text of the text view, typically shown in-line when the text is empty to tell the user what to enter.
      • label

        public CharSequence label
        A label to show to the user describing the text they are writing.
      • packageName

        public String packageName
        Name of the package that owns this editor.
      • fieldId

        public int fieldId
        Identifier for the editor's field. This is optional, and may be 0. By default it is filled in with the result of View.getId() on the View that is being edited.
      • fieldName

        public String fieldName
        Additional name for the editor's field. This can supply additional name information for the field. By default it is null. The actual contents have no meaning.
      • extras

        public Bundle extras
        Any extra data to supply to the input method. This is for extended communication with specific input methods; the name fields in the bundle should be scoped (such as "com.mydomain.im.SOME_FIELD") so that they don't conflict with others. This field is can be filled in from the android.R.attr#editorExtras attribute of a TextView.
    • Constructor Detail

      • EditorInfo

        public EditorInfo()
    • Method Detail

      • dump

        public void dump(Printer pw,
                String prefix)
        Write debug output of this object.
      • writeToParcel

        public void writeToParcel(Parcel dest,
                         int flags)
        Used to package this object into a Parcel.
        Specified by:
        writeToParcel in interface Parcelable
        Parameters:
        dest - The Parcel to be written.
        flags - The flags used for parceling.
      • describeContents

        public int describeContents()
        Description copied from interface: Parcelable
        Describe the kinds of special objects contained in this Parcelable's marshalled representation.
        Specified by:
        describeContents in interface Parcelable
        Returns:
        a bitmask indicating the set of special object types marshalled by the Parcelable.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 196 / 96389561. Delta: 0.03992 с