Created
February 21, 2018 12:07
-
-
Save thagikura/47070c9184f74699ed3b0a387cc90555 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class InflateCounterGroupAdapter : GroupAdapter<ViewHolder>() { | |
companion object { | |
private val count: AtomicInteger = AtomicInteger(0) | |
} | |
override fun onCreateViewHolder(parent: ViewGroup, layoutResId: Int): ViewHolder { | |
Timber.d("Inflate view holder ${count.incrementAndGet()}") | |
return super.onCreateViewHolder(parent, layoutResId) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment