Build 1.0_r1(from source)

android.text.method
Interface MovementMethod

All Known Implementing Classes:
ArrowKeyMovementMethod, LinkMovementMethod, ScrollingMovementMethod

public interface MovementMethod


Method Summary
 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 onKeyDown(TextView widget, Spannable text, int keyCode, KeyEvent event)
           
 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)
           
 

Method Detail

initialize

void initialize(TextView widget,
                Spannable text)

onKeyDown

boolean onKeyDown(TextView widget,
                  Spannable text,
                  int keyCode,
                  KeyEvent event)

onKeyUp

boolean onKeyUp(TextView widget,
                Spannable text,
                int keyCode,
                KeyEvent event)

onTakeFocus

void onTakeFocus(TextView widget,
                 Spannable text,
                 int direction)

onTrackballEvent

boolean onTrackballEvent(TextView widget,
                         Spannable text,
                         MotionEvent event)

onTouchEvent

boolean onTouchEvent(TextView widget,
                     Spannable text,
                     MotionEvent event)

canSelectArbitrarily

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.


Build 1.0_r1(from source)

Please submit a feedback, bug or feature