|  Known Direct Subclasses | 
|  Known Indirect Subclasses 
      
      
  
        
              | LinkMovementMethod | A movement method that traverses links in the text buffer and scrolls if necessary. |  | 
Class Overview
Base classes for movement methods.
 
Summary
| Public Methods | 
|---|
	 
    
        | boolean | canSelectArbitrarily() 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. | 
	 
    
        | void | initialize(TextView widget, Spannable text) | 
	 
    
        | boolean | onGenericMotionEvent(TextView widget, Spannable text, MotionEvent event) | 
	 
    
        | boolean | onKeyDown(TextView widget, Spannable text, int keyCode, KeyEvent event) | 
	 
    
        | boolean | onKeyOther(TextView widget, Spannable text, KeyEvent event) If the key listener wants to other kinds of key events, return true,
 otherwise return false and the caller (i.e. | 
	 
    
        | boolean | onKeyUp(TextView widget, Spannable text, int keyCode, KeyEvent event) | 
	 
    
        | void | onTakeFocus(TextView widget, Spannable text, int direction) | 
	 
    
        | boolean | onTouchEvent(TextView widget, Spannable text, MotionEvent event) | 
	 
    
        | boolean | onTrackballEvent(TextView widget, Spannable text, MotionEvent event) | 
| Protected Methods | 
|---|
	 
    
        | boolean | bottom(TextView widget, Spannable buffer) Performs a bottom movement action. | 
	 
    
        | boolean | down(TextView widget, Spannable buffer) Performs a down movement action. | 
	 
    
        | boolean | end(TextView widget, Spannable buffer) Performs an end movement action. | 
	 
    
        | 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. | 
	 
    
        | boolean | handleMovementKey(TextView widget, Spannable buffer, int keyCode, int movementMetaState, KeyEvent event) Performs a movement key action. | 
	 
    
        | boolean | home(TextView widget, Spannable buffer) Performs a home movement action. | 
	 
    
        | boolean | left(TextView widget, Spannable buffer) Performs a left movement action. | 
	 
    
        | boolean | lineEnd(TextView widget, Spannable buffer) Performs a line-end movement action. | 
	 
    
        | boolean | lineStart(TextView widget, Spannable buffer) Performs a line-start movement action. | 
	 
    
        | boolean | pageDown(TextView widget, Spannable buffer) Performs a page-down movement action. | 
	 
    
        | boolean | pageUp(TextView widget, Spannable buffer) Performs a page-up movement action. | 
	 
    
        | boolean | right(TextView widget, Spannable buffer) Performs a right movement action. | 
	 
    
        | boolean | top(TextView widget, Spannable buffer) Performs a top movement action. | 
	 
    
        | boolean | up(TextView widget, Spannable buffer) Performs an up movement action. | 
| [Expand] Inherited Methods | 
|---|
|  From class
  java.lang.Object 
  
   
    
    
	 
    
        | Object | clone() Creates and returns a copy of this Object. |  
        | boolean | equals(Object o) Compares this instance with the specified object and indicates if they
 are equal. |  
        | void | finalize() Invoked when the garbage collector has detected that this instance is no longer reachable. |  
        | final
            
            
            Class<?> | getClass() Returns the unique instance of  Class that represents this
 object's class. |  
        | int | hashCode() Returns an integer hash code for this object. |  
        | final
            
            
            void | notify() Causes a thread which is waiting on this object's monitor (by means of
 calling one of the wait()methods) to be woken up. |  
        | final
            
            
            void | notifyAll() Causes all threads which are waiting on this object's monitor (by means
 of calling one of the wait()methods) to be woken up. |  
        | String | toString() Returns a string containing a concise, human-readable description of this
 object. |  
        | final
            
            
            void | wait() Causes the calling thread to wait until another thread calls the notify()ornotifyAll()method of this object. |  
        | final
            
            
            void | wait(long millis, int nanos) Causes the calling thread to wait until another thread calls the notify()ornotifyAll()method of this object or until the
 specified timeout expires. |  
        | final
            
            
            void | wait(long millis) Causes the calling thread to wait until another thread calls the notify()ornotifyAll()method of this object or until the
 specified timeout expires. |  | 
|  From interface
  android.text.method.MovementMethod 
  
   
    
    
	 
    
        | abstract
            
            
            
            
            boolean | canSelectArbitrarily() 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. |  
        | abstract
            
            
            
            
            void | initialize(TextView widget, Spannable text) |  
        | abstract
            
            
            
            
            boolean | onGenericMotionEvent(TextView widget, Spannable text, MotionEvent event) |  
        | abstract
            
            
            
            
            boolean | onKeyDown(TextView widget, Spannable text, int keyCode, KeyEvent event) |  
        | abstract
            
            
            
            
            boolean | onKeyOther(TextView view, Spannable text, KeyEvent event) If the key listener wants to other kinds of key events, return true,
 otherwise return false and the caller (i.e. |  
        | abstract
            
            
            
            
            boolean | onKeyUp(TextView widget, Spannable text, int keyCode, KeyEvent event) |  
        | abstract
            
            
            
            
            void | onTakeFocus(TextView widget, Spannable text, int direction) |  
        | abstract
            
            
            
            
            boolean | onTouchEvent(TextView widget, Spannable text, MotionEvent event) |  
        | abstract
            
            
            
            
            boolean | onTrackballEvent(TextView widget, Spannable text, MotionEvent event) |  | 
 
Public Constructors
 
    
      
        public 
         
         
         
         
        
      
      BaseMovementMethod
      ()
    
      
    
 
Public Methods
 
    
      
        public 
         
         
         
         
        boolean
      
      canSelectArbitrarily
      ()
    
      
    
      
  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.
 
 
 
    
      
    
      
  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.
 
 
Protected Methods
 
    
      
        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.
 
     
 
 
    
      
        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.
 
     
 
 
    
      
        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.
 
     
 
 
    
      
        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.
 
     
 
 
    
      
        protected 
         
         
         
         
        boolean
      
      handleMovementKey
      (TextView widget, Spannable buffer, int keyCode, int movementMetaState, KeyEvent event)
    
      
    
      
  
  
      Parameters
      
        
          | widget | The text view. | 
        
          | buffer | The text buffer. | 
        
          | keyCode | The key code. | 
        
          | movementMetaState | The keyboard meta states used for movement. | 
        
          | event | The key event. | 
      
   
  
      Returns
      - True if the event was handled.
 
     
 
 
    
      
        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.
 
     
 
 
    
      
        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.
 
     
 
 
    
      
        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.
 
     
 
 
    
      
        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.
 
     
 
 
    
      
        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.
 
     
 
 
    
      
        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.
 
     
 
 
    
      
        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.
 
     
 
 
    
      
        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.
 
     
 
 
    
      
        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.