IT. Expert System.

Android Reference

BaseMovementMethod


android.text.method

Class BaseMovementMethod

    • Constructor Detail

      • BaseMovementMethod

        public BaseMovementMethod()
    • Method Detail

      • canSelectArbitrarily

        public boolean canSelectArbitrarily()
        Description copied from interface: MovementMethod
        Returns true if this movement method allows arbitrary selection of any text; false if it has no selection (like a movement method that only scrolls) or a constrained selection (for example limited to links. The "Select All" menu item is disabled if arbitrary selection is not allowed.
        Specified by:
        canSelectArbitrarily in interface MovementMethod
      • onKeyOther

        public boolean onKeyOther(TextView widget,
                         Spannable text,
                         KeyEvent event)
        Description copied from interface: MovementMethod
        If the key listener wants to other kinds of key events, return true, otherwise return false and the caller (i.e. the widget host) will handle the key.
        Specified by:
        onKeyOther in interface MovementMethod
      • getMovementMetaState

        protected int getMovementMetaState(Spannable buffer,
                               KeyEvent event)
        Gets the meta state used for movement using the modifiers tracked by the text buffer as well as those present in the key event. The movement meta state excludes the state of locked modifiers or the SHIFT key since they are not used by movement actions (but they may be used for selection).
        Parameters:
        buffer - The text buffer.
        event - The key event.
        Returns:
        The keyboard meta states used for movement.
      • left

        protected boolean left(TextView widget,
                   Spannable buffer)
        Performs a left movement action. Moves the cursor or scrolls left by one character.
        Parameters:
        widget - The text view.
        buffer - The text buffer.
        Returns:
        True if the event was handled.
      • right

        protected boolean right(TextView widget,
                    Spannable buffer)
        Performs a right movement action. Moves the cursor or scrolls right by one character.
        Parameters:
        widget - The text view.
        buffer - The text buffer.
        Returns:
        True if the event was handled.
      • up

        protected boolean up(TextView widget,
                 Spannable buffer)
        Performs an up movement action. Moves the cursor or scrolls up by one line.
        Parameters:
        widget - The text view.
        buffer - The text buffer.
        Returns:
        True if the event was handled.
      • down

        protected boolean down(TextView widget,
                   Spannable buffer)
        Performs a down movement action. Moves the cursor or scrolls down by one line.
        Parameters:
        widget - The text view.
        buffer - The text buffer.
        Returns:
        True if the event was handled.
      • pageUp

        protected boolean pageUp(TextView widget,
                     Spannable buffer)
        Performs a page-up movement action. Moves the cursor or scrolls up by one page.
        Parameters:
        widget - The text view.
        buffer - The text buffer.
        Returns:
        True if the event was handled.
      • pageDown

        protected boolean pageDown(TextView widget,
                       Spannable buffer)
        Performs a page-down movement action. Moves the cursor or scrolls down by one page.
        Parameters:
        widget - The text view.
        buffer - The text buffer.
        Returns:
        True if the event was handled.
      • top

        protected boolean top(TextView widget,
                  Spannable buffer)
        Performs a top movement action. Moves the cursor or scrolls to the top of the buffer.
        Parameters:
        widget - The text view.
        buffer - The text buffer.
        Returns:
        True if the event was handled.
      • bottom

        protected boolean bottom(TextView widget,
                     Spannable buffer)
        Performs a bottom movement action. Moves the cursor or scrolls to the bottom of the buffer.
        Parameters:
        widget - The text view.
        buffer - The text buffer.
        Returns:
        True if the event was handled.
      • lineStart

        protected boolean lineStart(TextView widget,
                        Spannable buffer)
        Performs a line-start movement action. Moves the cursor or scrolls to the start of the line.
        Parameters:
        widget - The text view.
        buffer - The text buffer.
        Returns:
        True if the event was handled.
      • lineEnd

        protected boolean lineEnd(TextView widget,
                      Spannable buffer)
        Performs a line-end movement action. Moves the cursor or scrolls to the end of the line.
        Parameters:
        widget - The text view.
        buffer - The text buffer.
        Returns:
        True if the event was handled.
      • home

        protected boolean home(TextView widget,
                   Spannable buffer)
        Performs a home movement action. Moves the cursor or scrolls to the start of the line or to the top of the document depending on whether the insertion point is being moved or the document is being scrolled.
        Parameters:
        widget - The text view.
        buffer - The text buffer.
        Returns:
        True if the event was handled.
      • end

        protected boolean end(TextView widget,
                  Spannable buffer)
        Performs an end movement action. Moves the cursor or scrolls to the start of the line or to the top of the document depending on whether the insertion point is being moved or the document is being scrolled.
        Parameters:
        widget - The text view.
        buffer - The text buffer.
        Returns:
        True if the event was handled.
      • scrollLeft

        protected boolean scrollLeft(TextView widget,
                         Spannable buffer,
                         int amount)
        Performs a scroll left action. Scrolls left by the specified number of characters.
        Parameters:
        widget - The text view.
        buffer - The text buffer.
        amount - The number of characters to scroll by. Must be at least 1.
        Returns:
        True if the event was handled.
      • scrollRight

        protected boolean scrollRight(TextView widget,
                          Spannable buffer,
                          int amount)
        Performs a scroll right action. Scrolls right by the specified number of characters.
        Parameters:
        widget - The text view.
        buffer - The text buffer.
        amount - The number of characters to scroll by. Must be at least 1.
        Returns:
        True if the event was handled.
      • scrollUp

        protected boolean scrollUp(TextView widget,
                       Spannable buffer,
                       int amount)
        Performs a scroll up action. Scrolls up by the specified number of lines.
        Parameters:
        widget - The text view.
        buffer - The text buffer.
        amount - The number of lines to scroll by. Must be at least 1.
        Returns:
        True if the event was handled.
      • scrollDown

        protected boolean scrollDown(TextView widget,
                         Spannable buffer,
                         int amount)
        Performs a scroll down action. Scrolls down by the specified number of lines.
        Parameters:
        widget - The text view.
        buffer - The text buffer.
        amount - The number of lines to scroll by. Must be at least 1.
        Returns:
        True if the event was handled.
      • scrollPageUp

        protected boolean scrollPageUp(TextView widget,
                           Spannable buffer)
        Performs a scroll page up action. Scrolls up by one page.
        Parameters:
        widget - The text view.
        buffer - The text buffer.
        Returns:
        True if the event was handled.
      • scrollPageDown

        protected boolean scrollPageDown(TextView widget,
                             Spannable buffer)
        Performs a scroll page up action. Scrolls down by one page.
        Parameters:
        widget - The text view.
        buffer - The text buffer.
        Returns:
        True if the event was handled.
      • scrollTop

        protected boolean scrollTop(TextView widget,
                        Spannable buffer)
        Performs a scroll to top action. Scrolls to the top of the document.
        Parameters:
        widget - The text view.
        buffer - The text buffer.
        Returns:
        True if the event was handled.
      • scrollBottom

        protected boolean scrollBottom(TextView widget,
                           Spannable buffer)
        Performs a scroll to bottom action. Scrolls to the bottom of the document.
        Parameters:
        widget - The text view.
        buffer - The text buffer.
        Returns:
        True if the event was handled.
      • scrollLineStart

        protected boolean scrollLineStart(TextView widget,
                              Spannable buffer)
        Performs a scroll to line start action. Scrolls to the start of the line.
        Parameters:
        widget - The text view.
        buffer - The text buffer.
        Returns:
        True if the event was handled.
      • scrollLineEnd

        protected boolean scrollLineEnd(TextView widget,
                            Spannable buffer)
        Performs a scroll to line end action. Scrolls to the end of the line.
        Parameters:
        widget - The text view.
        buffer - The text buffer.
        Returns:
        True if the event was handled.


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: 324 / 158856238. Delta: 0.05088 с