Adding a Hyperlinked text in the array.xml

后端 未结 1 1267
悲&欢浪女
悲&欢浪女 2021-01-16 09:13

I was creating list using the array.xml and populating it into listView The problem is I need to add a hyperLinked text within the arrayItem decsription so than when I popu

相关标签:
1条回答
  • 2021-01-16 10:10
    Try this way,hope this will help you to solve your problem.
    
    <string name="link">1.Click &lt;a href="http://www.google.com"> here &lt;/a> to goto wesite.</string>
    
    textView.setMovementMethod (LinkMovementMethod.getInstance());
    textView.setText(Html.fromHtml(getString(R.string.link)));
    
    0 讨论(0)
提交回复
热议问题