Android set autoLink attribute programmatically

后端 未结 1 1278
暖寄归人
暖寄归人 2021-01-17 12:59


I want to create this TextView from code, however

相关标签:
1条回答
  • 2021-01-17 13:21
    TextView tv_contatti2 = new TextView(this); tv_contatti2.setText(contatti);
    Linkify.addLinks(tv_contatti2, Linkify.PHONE_NUMBERS);
    tv_contatti2.setLinksClickable(true);
    

    where "contatti" has value +39012345678 with international prefix

    0 讨论(0)
提交回复
热议问题