有没有办法Spannable[] stuff
从字符串资源中提取一个?基本上类似于
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string-array name="planets_array">
<item>Welcome to <b>Mercury</b></item>
<item>Welcome to <b>Venus</b></item>
<item>Welcome to <b>Earth</b></item>
<item>Welcome to <b>Mars</b></item>
</string-array>
</resources>
然后我会将数组提取到
Resources res = getResources();
Spannable[] planets = res.getStringArray(R.array.planets_array);
但现在 eclipse 告诉我Spannable[]
改成String[]
.