cancel
Showing results for 
Search instead for 
Did you mean: 

How to make SlideMenu swipeable?

SKowa.1
Associate

Hello,

is there a way to make the SlideMenu Container swipeable, reacting not only on the stateChange button, which starts the animation, but also on a swipe an move to to the current position of the touch. The idea is to make a slidemenu behaving like the for example the android quick settings menu (swipe down from the top of the screen)

What is the better way to achieve this?

  • Copy or inherit the SlideMenu Class and add the swipeable functions in source code, similiar to the swipeContainer
  • Or is there a possibility to add this through Triggers & actions or Dragable Mixin in the TouchGFX Designer

Thanks!

Seko

1 REPLY 1
Romain DIELEMAN
ST Employee

Hi,

I suppose you already implemented a solution by now, but it is possible to create custom triggers but I think the best way would be to create a custom widget by copying the SlideMenu class and add the swipe functionality. This will leave you a bit more freedom even if you will not be able to see the widget in the canvas in Designer.

/Romain