如果我在我的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