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
  • 984
  • 2
  • 10
  • 37

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,057
  • 3
  • 22
  • 33