I am creating a spinner in my current layout file, and the contents of this spinner range from 1.0 mA, all the way to 100.0mA. Each increment increases by 0.1 mA. Is there a way to have some sort of loop to populate this string-array, other than manually entering each entry in my string-array file?
Share
Create a SpinnerAdapter and hook it up to your spinner. Then you can loop through calling adapter.add(item1), adapter.add(item2), etc…
Check this out also: How can I add items to a spinner in Android?
For example,