我有一个应用程序,让用户有权从string.xml的数组中选择一个项目:
<array-string name="countries">
<item>USA</item>
<item>UK</item>
</array-string>
以及翻译成中文的 string.xml中的另一个数组:
<array-string name="countries">
<item>美国</item>
<item>联合王国</item>
</array-string>
例如,应用程序有两个TextViews
,我希望用户用中文选择某个国家,第一个TextView
显示中文值,第二个显示英文值(来自默认 string.xml)。
我希望我的意图很明确。