I have a web app I’m creating, where I need to allow the user to swipe between pages. From what I’ve been researching you need to use MGWT (mobile Google web toolkit — http://code.google.com/p/mgwt/)
Then you have to create a class that extends a Panel class and implements MGWT’s “HasTouchHandlers” interface:
Also your Panel should implement GWT’s AnimatedLayout interface (such as LayoutPanel, DockLayoutPanel, and SplitLayoutPane), so you can natively slide the Panel after intercepting the touch event.
My question is can any one point me to a tutorial or example code on how to do this? Or how layout a GWT project in terms of
Panels? For example, if I have multiple pages in my app do I have multiple Panels?
thanks – Mike
I prefer that you use iScroll for swipe because it works without any issues on Android as well as iOS Browsers. The Implementation will also work on 3rd party browsers like Diigo or Dolphin. With this you i think you can completely avoid using the mgwt API.