I am trying to create a spinner which gets its values from a double array but i get the error: java.lang.Double[], required int, i have values such as 1.4 or 2.8 which is why i cant use an int array. My code is here below:
Double[] FULL = new Double[]{2.25,2.5,2.8};
adapter = ArrayAdapter.createFromResource(this,FULL,android.R.layout.simple_selectable_list_item);
I have tried converting my double array into an int array but that doesn't seem to work as well, i am relatively new to android so i may be doing the conversion wrong. Can i get some help?
Double.parseDouble(value).