【发布时间】:2026-01-31 00:20:03
【问题描述】:
如何在字符串数组项元素中搜索特定文本?以下是 xml 文件的示例。字符串数组名称是 android。我在字符串数组中有一些项目。现在我想搜索“软件”这个词。请告诉我该怎么做?
<?xml version="1.0" encoding="utf-8"?><resources>
<string-array name="android">
<item>Android is a software stack for mobile devices that includes an operating system, middleware and key applications.</item>
<item>Google Inc. purchased the initial developer of the software, Android Inc., in 2005..</item>
</string-array>
【问题讨论】:
标签: android