Using android gesture on top of menu buttons Using android gesture on top of menu buttons android android

Using android gesture on top of menu buttons


If I understood correctly, you want to perform both click action and gesture action on the same view, I am not sure how to achieve this, however, we can have invisible view behind the buttons to handle gesture and buttons on top will handle the click events as usual.

Default Calculator application uses this approach to swap between normal mode and advanced mode.

Calculator Source

Refer,com.android.calculator2.PanelSwitcher - for gesture eventscom.android.calculator2.EventListener - for click events

hope it helps.