TileAdapter

class TileAdapter(tileImages: ArrayList<ImageButton>, tileWidth: Int, tileHeight: Int) : BaseAdapter

Adapter for GridViewGesture that handles the tiles in the puzzle grid.

Parameters

tileImages

Images displayed on the tiles in the puzzle grid.

tileWidth

Width of each tile in the puzzle grid.

tileHeight

Height of each tile in the puzzle grid.

Constructors

TileAdapter
Link copied to clipboard
fun TileAdapter(tileImages: ArrayList<ImageButton>, tileWidth: Int, tileHeight: Int)
Images displayed on the tiles in the puzzle grid.

Properties

tileHeight
Link copied to clipboard
private val tileHeight: Int
Height of each tile in the puzzle grid.
tileImages
Link copied to clipboard
private val tileImages: ArrayList<ImageButton>
Images displayed on the tiles in the puzzle grid.
tileWidth
Link copied to clipboard
private val tileWidth: Int
Width of each tile in the puzzle grid.

Functions

getCount
Link copied to clipboard
open override fun getCount(): Int
How many items are in the data set represented by this Adapter.
getItem
Link copied to clipboard
open override fun getItem(position: Int): Any
Get the data item associated with the specified position in the data set.
getItemId
Link copied to clipboard
open override fun getItemId(position: Int): Long
Get the row ID associated with the specified position in the list.
getView
Link copied to clipboard
open override fun getView(position: Int, convertView: View?, parent: ViewGroup?): View
Get a View that displays the data at the specified position in the data set.

Inherited functions

areAllItemsEnabled
Link copied to clipboard
open override fun areAllItemsEnabled(): Boolean
getAutofillOptions
Link copied to clipboard
open override fun getAutofillOptions(): Array<CharSequence>?
getDropDownView
Link copied to clipboard
open override fun getDropDownView(p0: Int, p1: View, p2: ViewGroup): View
getItemViewType
Link copied to clipboard
open override fun getItemViewType(p0: Int): Int
getViewTypeCount
Link copied to clipboard
open override fun getViewTypeCount(): Int
hasStableIds
Link copied to clipboard
open override fun hasStableIds(): Boolean
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 fun notifyDataSetChanged()
notifyDataSetInvalidated
Link copied to clipboard
open fun notifyDataSetInvalidated()
registerDataSetObserver
Link copied to clipboard
open override fun registerDataSetObserver(p0: DataSetObserver)
setAutofillOptions
Link copied to clipboard
open fun setAutofillOptions(vararg p0: CharSequence)
unregisterDataSetObserver
Link copied to clipboard
open override fun unregisterDataSetObserver(p0: DataSetObserver)