How to set the part of the text view is clickable

后端 未结 20 1019
无人共我
无人共我 2020-11-22 01:29

I have the text \"Android is a Software stack\". In this text i want to set the \"stack\" text is clickable. in the sense if you click on t

20条回答
  •  逝去的感伤
    2020-11-22 02:25

    For bold,

    mySpannable.setSpan(new StyleSpan(Typeface.BOLD),termStart,termStop,Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
    

提交回复
热议问题