PDA

View Full Version : Advice on user experience for using gestures




mrl72
Jan 21, 2011, 10:45 AM
Hi all -

I have a horizontal menu that appears when the user swipes up on the bottom of the screen. It works great but I'm trying to figure out the best way to hide the menu once it appears. Obviously a selection on the menu will hide it by default, but what to do if user wants to hide it again without making a menu selection? I can't swipe back down to make the menu hide again since the buttons on the menu override the gestures set on the view. Therefore, I'm left with either touching off the menu to hide it again, have another button on the menu to hide the menu, or have a timer hide it after x seconds of inactivity.

What would you recommend for best experience?

Cheers.



dejo
Jan 21, 2011, 10:49 AM
I can't swipe back down to make the menu hide again since the buttons on the menu override the gestures set on the view.
Actually, I believe you can. You just need to set the buttons to ignore the swipe-down gesture and then pass things along to the next element in the responder chain.

mrl72
Jan 21, 2011, 11:32 AM
Thanks I didn't know that, I'll look into it. I'm having another problem now anyway so might have to do away with the hiding/showing of the menu, even if it does look pretty cool. I need to put a scroll view under the menu which takes up the entire screen so now the menu doesn't pop up at all because the scrollview is overriding the swipe gesture now. :( Oh well... unless there is a way to prevent the scrollview from scrolling up/down if swiped within a 100pixel area of the bottom of the screen I'm SOL.