android.text.style.ClickableSpan
はあなたの問題を解決することができ感謝しています。
SpannableString ss = new SpannableString("foo bar 2.00 foo foo");
ClickableSpan clickableSpan = new ClickableSpan() {
@Override
public void onClick(View textView) {
startActivity(new Intent(MyActivity.this, NextActivity.class));
}
@Override
public void updateDrawState(TextPaint ds) {
super.updateDrawState(ds);
ds.setUnderlineText(false);
}
};
ss.setSpan(clickableSpan, i, j, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); // where i and j should be the start and end index of your clickable string.
textView.setText(ss);
これらの番号にハイパーリンクを付けることができます// – Meenal