不要使用默认的 LinkMovementMethod,而是制作自己的实现,例如...
itemContent.setMovementMethod(new MovementMethod() {
@Override
public boolean onTrackballEvent(TextView widget, Spannable text,
MotionEvent event) {
// TODO: Do here what you want
return false;
}
@Override
public boolean onTouchEvent(TextView widget, Spannable text,
MotionEvent event) {
// TODO: Do here what you want
return false;
}
@Override
public void onTakeFocus(TextView widget, Spannable text, int direction) {
// TODO: Do here what you want
}
@Override
public boolean onKeyUp(TextView widget, Spannable text, int keyCode,
KeyEvent event) {
// TODO: Do here what you want
return false;
}
@Override
public boolean onKeyOther(TextView view, Spannable text, KeyEvent event) {
// TODO: Do here what you want
return false;
}
@Override
public boolean onKeyDown(TextView widget, Spannable text, int keyCode,
KeyEvent event) {
// TODO: Do here what you want
return false;
}
@Override
public boolean onGenericMotionEvent(TextView widget, Spannable text,
MotionEvent event) {
// TODO: Do here what you want
return false;
}
@Override
public void initialize(TextView widget, Spannable text) {
// TODO: Do here what you want
}
@Override
public boolean canSelectArbitrarily() {
// TODO: Do here what you want
return false;
}
});
请参阅此处的文档以在其中找到最合适的方法...:)
希望这可以帮助...