Skip to content

Instantly share code, notes, and snippets.

@ataulm
Created August 14, 2020 10:30
Show Gist options
  • Save ataulm/b79725378ee36d74cf9101702c5ab17e to your computer and use it in GitHub Desktop.
Save ataulm/b79725378ee36d74cf9101702c5ab17e to your computer and use it in GitHub Desktop.
class RatingsView(context: Context, attrs: AttributeSet)
: View(context, attrs) {
private val accessHelper = AccessHelper()
init {
ViewCompat.setAccessibilityDelegate(this, accessHelper)
}
// override fun onDraw(canvas: Canvas)
private inner class AccessHelper : ExploreByTouchHelper(this) {
// ...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment