strings.xmlファイルでstring-arrayが定義されている場合。
<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>
または、これはコード内のアダプターを使用してのみ可能ですか?