Adding a Hyperlinked text in the array.xml

后端 未结 1 1268
悲&欢浪女
悲&欢浪女 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.
    
    1.Click <a href="http://www.google.com"> here </a> to goto wesite.
    
    textView.setMovementMethod (LinkMovementMethod.getInstance());
    textView.setText(Html.fromHtml(getString(R.string.link)));
    

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