What i have: I have a set of buttons in horizontal scroll view
What i want: I want to detect a event on double tapping the button
Note Usually i deal with click events using class implements Onclicklistener
. But now how can i achieve the same for doubleclickevents. it will be helpful if there is any interface i can use for this purpose also
CODE:
<HorizontalScrollView
android:id="@+id/horizontalScrollView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal" >
<Button
android:id="@+id/button1"
android:layout_width="200dp"
android:layout_height="150dp"
android:text="Song1" />
<Button
android:id="@+id/button2"
android:layout_width="200dp"
android:layout_height="150dp"
android:text="Song2" />
<Button
android:id="@+id/button3"
android:layout_width="200dp"
android:layout_height="150dp"
android:text="Song3" />
</LinearLayout>
</HorizontalScrollView>