INNER CODE UNIT · Kotlin

peeked

mikepenz/FastAdapter · fastadapter/src/main/java/com/mikepenz/fastadapter/FastAdapter.kt:548

            val peeked = adapterSizes.valueAt(index).peekAdapterItem(position - adapterSizes.keyAt(index))
            if (peeked != null) {
                relativeInfo.item = peeked
                relativeInfo.adapter = adapterSizes.valueAt(index)
                relativeInfo.position = position
            }
        }
        return relativeInfo
    }

    /**
     * Gets the adapter for the given position
     *
     * @param position the global position
     * @return the adapter responsible for this global position
     */
    open fun getAdapter(position: Int): IAdapter<Item>? {
        //if we are out of range just return null

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…