I am creating a ClickableSpan, and it is displaying properly with
the proper text underlined. However, the clicks are not registering.
Do you know what I am doing wrong???
Thanks, Victor
Here is the code snippet:
view.setText("This is a test");
ClickableSpan span = new ClickableSpan() {
@Override
public void onClick(View widget) {
log("Clicked");
}
};
view.getText().setSpan(span, 0, view.getText().length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…