0

I've a menu in Android app with several ImageButton (all grouped in a RelativeLayout) and I would like to make it disappear when swiping with finger towards the outside of the screen. Swiping with finger towards the inside of the screen, instead, the menu should re-appear. Any suggestion to do this ?

andreasperelli
  • 1,034
  • 2
  • 11
  • 40

1 Answers1

2

Try writing a gesture detection as given here Fling gesture detection on grid layout and in that code instead of toast write your code.

Community
  • 1
  • 1
Panther
  • 8,938
  • 3
  • 23
  • 34