2016-10-01 8 views

답변

1

어쩌면 이것은 당신을 도울 것입니다 :

String myText = "textA"; 
spannableStringBuilder = new SpannableStringBuilder(myText); 
spannableStringBuilder.setSpan(new ClickableSpan() { 
    @Override 
    public void onClick(View widget) { 
     spannableStringBuilder.removeSpan(this); // This will delete this clickable span 
    } 
},0,myText.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); 
myTextView.setText(spannableStringBuilder); 
myTextView.setMovementMethod(LinkMovementMethod.getInstance());