这是一个词汇表应用程序。我将数据保存在字符串数组中。在 strings.xml 中
<string-array name="title">
<item>aaaa</item>
<item>bbbb</item>
<item>cccc</item>
<item>dddd </item>
</string-array>
<string-array name="definition">
<item>This is first entry relate to bbbb. .</item>
<item>This is a book.</item>
<item>This is aaaa so link it there.</item>
<item>This is related to cccc</item>
</string-array>
在活动 1 中,我有在列表视图中显示的所有数据的列表。单击它会转到包含单词和定义的活动 2。在一个活动 2 中,我有 2 个文本视图。一个用于显示标题,第二个用于定义。在定义中,如果存在任何标题,它应该是超链接的,并且单击它应该显示标题和定义。
我按照下面的链接参考.. Android:从可点击文本启动活动
但在上面的问题中,它只是一个字符串..如何处理字符串数组?
谢谢..