【发布时间】:2016-12-02 20:41:27
【问题描述】:
我在strings.xml 中有一个字符串数组,如下所示:
<string-array name="helpPages">
<item>Hello, I am DOS-bot, and I will guide you through this game.</item>
<item>In this game you will learn how to use a computer terminal or console.
This is an important tool for dealing with technical problems on your computer.</item>
<item>For the common user, the terminal can be useful for figuring out problems
related to Internet connectivity, corrupted or damaged files and many more. </item>
</string-array>
我想在我的一项活动中访问它。
我目前正在做以下事情:
String[] pages = GetStringArray(Resource.Array.helpPages);
但它不起作用。
【问题讨论】:
-
你的错误是什么?或者如果没有错误,那是什么问题?页面为空?
-
原来IDE刚刚坏掉了,没问题......
标签: android arrays xml string xamarin.android