INNER CODE UNIT · Kotlin
detachFromWindow
mikepenz/FastAdapter · fastadapter/src/main/java/com/mikepenz/fastadapter/FastAdapter.kt:867
open fun detachFromWindow(item: Item) {}
/**
* View is in a transient state and could not be recycled
*
* @return return true if you want to recycle anyways (after clearing animations or so)
*/
open fun failedToRecycle(item: Item): Boolean {
return false
}
}
companion object {
private const val TAG = "FastAdapter"
private fun floorIndex(sparseArray: SparseArray<*>, key: Int): Int {
var index = sparseArray.indexOfKey(key)
if (index < 0) {