fun <T> setItems(itemList: List<T>): Unit
sets an item list for setting items of the adapter.
fun setItems(@ArrayRes resource: Int): Unit
sets a string array resource for setting items of the adapter. This function only works for the DefaultSpinnerAdapter.