When giving a String array to a spinner, is it better to do it in the xml or programitically? My array has about 50 strings, and spinner will not change its array contents.
2 Answers
Assuming you want to change the contents of the array dynamically, a programmatic approach is the best option.
See a description of the programmatic approach here.