如果我在我的strings.xml文件中定义了一个字符串数组。默认情况下,字符串数组是否可以附加到ListView?
<string-array name="items">
<item >item 1</item>
<item >item 2</item>
<item >item 3</item>
</string-array>
我可以使用引用将它直接插入我的ListView吗?
<ListView
android:id="@+id/itemsListView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
- reference to items here >
</ListView>
或者这是唯一可能的代码中使用适配器?
酷谢谢,我现在把它的时间的数据源和UI组件之间的接口 – Spoonface 2012-07-14 22:18:26