I want to present some choices in my application. Right now I\'m doing it with buttons one under another.
What I really want to do is to present them as a list like in \
But how do I add entries to that? All examples I've found do it programatically - through cursor adapters or array adapters.
Use the android:entries attribute on your ListView element, pointing to a <string-array> resource (typically put in res/values/arrays.xml).
android:entries
ListView
<string-array>
res/values/arrays.xml