SpinnerAdapter

class SpinnerAdapter(context: Context?, textViewResourceId: Int, objects: Array<String?>?) : ArrayAdapter<String?>

Adapter for the spinner that handles the selection of the puzzle image.

Parameters

context

Current context. This value cannot be null.

textViewResourceId

Resource ID for a layout file containing a layout to use when instantiating views.

objects

Objects to represent in the ListView. This value cannot be null.

Constructors

SpinnerAdapter
Link copied to clipboard
fun SpinnerAdapter(context: Context?, textViewResourceId: Int, objects: Array<String?>?)
Current context.

Functions

getDropDownView
Link copied to clipboard
open override fun getDropDownView(position: Int, convertView: View?, parent: ViewGroup): View
Gets a View that displays in the drop down popup the data at the specified position in the data set.

Inherited functions

add
Link copied to clipboard
open fun add(p0: String?)
addAll
Link copied to clipboard
open fun addAll(vararg p0: String?)
open fun addAll(p0: MutableCollection<out String?>)
areAllItemsEnabled
Link copied to clipboard
open override fun areAllItemsEnabled(): Boolean
clear
Link copied to clipboard
open fun clear()
getAutofillOptions
Link copied to clipboard
open override fun getAutofillOptions(): Array<CharSequence>?
getContext
Link copied to clipboard
open fun getContext(): Context
getCount
Link copied to clipboard
open override fun getCount(): Int
getDropDownViewTheme
Link copied to clipboard
open override fun getDropDownViewTheme(): Resources.Theme?
getFilter
Link copied to clipboard
open override fun getFilter(): Filter
getItem
Link copied to clipboard
open override fun getItem(p0: Int): String?
getItemId
Link copied to clipboard
open override fun getItemId(p0: Int): Long
getItemViewType
Link copied to clipboard
open override fun getItemViewType(p0: Int): Int
getPosition
Link copied to clipboard
open fun getPosition(p0: String?): Int
getView
Link copied to clipboard
open override fun getView(p0: Int, p1: View?, p2: ViewGroup): View
getViewTypeCount
Link copied to clipboard
open override fun getViewTypeCount(): Int
hasStableIds
Link copied to clipboard
open override fun hasStableIds(): Boolean
insert
Link copied to clipboard
open fun insert(p0: String?, p1: Int)
isEmpty
Link copied to clipboard
open override fun isEmpty(): Boolean
isEnabled
Link copied to clipboard
open override fun isEnabled(p0: Int): Boolean
notifyDataSetChanged
Link copied to clipboard
open override fun notifyDataSetChanged()
notifyDataSetInvalidated
Link copied to clipboard
open fun notifyDataSetInvalidated()
registerDataSetObserver
Link copied to clipboard
open override fun registerDataSetObserver(p0: DataSetObserver)
remove
Link copied to clipboard
open fun remove(p0: String?)
setAutofillOptions
Link copied to clipboard
open fun setAutofillOptions(vararg p0: CharSequence)
setDropDownViewResource
Link copied to clipboard
open fun setDropDownViewResource(p0: Int)
setDropDownViewTheme
Link copied to clipboard
open override fun setDropDownViewTheme(p0: Resources.Theme?)
setNotifyOnChange
Link copied to clipboard
open fun setNotifyOnChange(p0: Boolean)
sort
Link copied to clipboard
open fun sort(p0: Comparator<in String?>)
unregisterDataSetObserver
Link copied to clipboard
open override fun unregisterDataSetObserver(p0: DataSetObserver)