Skip to content

Instantly share code, notes, and snippets.



Last active Aug 18, 2020
What would you like to do?
override fun getVirtualViewAt(x: Float, y: Float): Int {
ratingsHistogram?.let {
val intervalWidth = width.toFloat() / it.intervals.size
return min((x / intervalWidth).toInt(), it.intervals.size - 1)
return HOST_ID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment