Android 在array.xml中添加超链接文本

Android 在array.xml中添加超链接文本,android,xml,Android,Xml,我使用array.xml创建列表并将其填充到listView中 问题是我需要在arrayItem声明中添加超链接文本,这样当我将其填充到listView时,它应该链接到我的网站 <string-array name="about_us"> <item><b>What is it all about ?</b>\n\this is a mobile application </item> <item>&

我使用array.xml创建列表并将其填充到listView中 问题是我需要在arrayItem声明中添加超链接文本,这样当我将其填充到listView时,它应该链接到我的网站

    <string-array name="about_us">
    <item><b>What is it all about ?</b>\n\this is a mobile application </item>
    <item><b>Where all goods go ?</b>Currently the  goods can get delivered only in India.</item>
    <item><b>How will I Know more?</b>Click [HERE] to go to our website</item>
    </string-array>

这是关于什么的?\n\n这是一个移动应用程序
所有货物都去哪里?目前货物只能在印度交付。
我如何知道更多信息?单击[此处]转到我们的网站
有没有办法把事情搞清楚

试试这个方法,希望这能帮你解决问题。
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)));
1.单击a href=”http://www.google.com“>here/a>转到wesite。 textView.setMovementMethod(LinkMovementMethod.getInstance()); setText(Html.fromHtml(getString(R.string.link));
我不太明白你的意思!如果它有一个文本框和字符串,我可以试试这个,但是我怎么能在一个包含更多文本的数组中这样做呢?(文本链接更多文本格式)你能发布一些包含内容的字符串数组吗?我已经更新了questoin。。主要问题是我正在使用可扩展列表视图(自定义)来显示内容。使用适配器如何将此ont word链接到web???尝试将您的链接设置为my ans href=“yourweblink”。我已设法通过添加锚定标记来获取hyperlinnk,但单击无效:(