I am doing a project in which i want to display a particular message on single touch and another message on double touch using android.How can i implement it.
My sa
You may employ RxAndroid in that case in Kotlin it shall be like this:
yourView.clicks().buffer(500, TimeUnit.MILLISECONDS, 2).filter {
it.size >= 2
}.subscribe {
// Handle double click
}
clicks()
extension function on a given view which creates an RX observable sequence.