android.text.method
Class MultiTapKeyListener
java.lang.Object
android.text.method.MetaKeyKeyListener
android.text.method.BaseKeyListener
android.text.method.MultiTapKeyListener
- All Implemented Interfaces:
- KeyListener, SpanWatcher
public class MultiTapKeyListener
- extends BaseKeyListener
- implements SpanWatcher
This is the standard key listener for alphabetic input on 12-key
keyboards. You should generally not need to instantiate this yourself;
TextKeyListener will do it for you.
|
Method Summary |
static MultiTapKeyListener |
getInstance(boolean autotext,
TextKeyListener.Capitalize cap)
Returns a new or existing instance with the specified capitalization
and correction properties. |
boolean |
onKeyDown(View view,
Editable content,
int keyCode,
KeyEvent event)
Handles presses of the meta keys. |
void |
onSpanAdded(Spannable s,
Object what,
int start,
int end)
This method is called to notify you that the specified object
has been attached to the specified range of the text. |
void |
onSpanChanged(Spannable buf,
Object what,
int s,
int e,
int start,
int stop)
This method is called to notify you that the specified object
has been relocated from the range ostart…oend
to the new range nstart…nend of the text. |
void |
onSpanRemoved(Spannable s,
Object what,
int start,
int end)
This method is called to notify you that the specified object
has been detached from the specified range of the text. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultiTapKeyListener
public MultiTapKeyListener(TextKeyListener.Capitalize cap,
boolean autotext)
getInstance
public static MultiTapKeyListener getInstance(boolean autotext,
TextKeyListener.Capitalize cap)
- Returns a new or existing instance with the specified capitalization
and correction properties.
onKeyDown
public boolean onKeyDown(View view,
Editable content,
int keyCode,
KeyEvent event)
- Description copied from class:
MetaKeyKeyListener
- Handles presses of the meta keys.
- Specified by:
onKeyDown in interface KeyListener- Overrides:
onKeyDown in class BaseKeyListener
onSpanChanged
public void onSpanChanged(Spannable buf,
Object what,
int s,
int e,
int start,
int stop)
- Description copied from interface:
SpanWatcher
- This method is called to notify you that the specified object
has been relocated from the range
ostart…oend
to the new range nstart…nend of the text.
- Specified by:
onSpanChanged in interface SpanWatcher
onSpanAdded
public void onSpanAdded(Spannable s,
Object what,
int start,
int end)
- Description copied from interface:
SpanWatcher
- This method is called to notify you that the specified object
has been attached to the specified range of the text.
- Specified by:
onSpanAdded in interface SpanWatcher
onSpanRemoved
public void onSpanRemoved(Spannable s,
Object what,
int start,
int end)
- Description copied from interface:
SpanWatcher
- This method is called to notify you that the specified object
has been detached from the specified range of the text.
- Specified by:
onSpanRemoved in interface SpanWatcher
Please submit a feedback, bug or feature