setItems
fun <T> Spinner.setItems(items: ArrayList<T>?, layoutResource: Int = android.R.layout.simple_spinner_dropdown_item, getTitle: (item: T) -> String = { a -> a.toString() }): SpinnerAdapter?
Sets an ArrayList of objects with an additional (but optional and which defaults to object.toString()
) string conversion method for the same.
Return
A new ArrayAdapter
already containing the items received by this method